mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:26:00 +01:00
parent
9ed64ff606
commit
8c21a6116a
1 changed files with 3 additions and 1 deletions
|
@ -724,7 +724,9 @@ sc_navigate_index(girara_session_t* session, girara_argument_t* argument,
|
|||
switch(argument->n) {
|
||||
case UP:
|
||||
if (gtk_tree_path_prev(path) == FALSE) {
|
||||
is_valid_path = gtk_tree_path_up(path);
|
||||
/* For some reason gtk_tree_path_up returns TRUE although we're not
|
||||
* moving anywhere. */
|
||||
is_valid_path = gtk_tree_path_up(path) && (gtk_tree_path_get_depth(path) > 0);
|
||||
} else { /* row above */
|
||||
while(gtk_tree_view_row_expanded(tree_view, path)) {
|
||||
gtk_tree_model_get_iter(model, &iter, path);
|
||||
|
|
Loading…
Reference in a new issue