mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 03:03:47 +01:00
Fix index navigation issues (Closes: #40).
Thanks to Serge Guelton for the patch.
This commit is contained in:
parent
5a2af2bc71
commit
33ac8b2c33
@ -2428,7 +2428,7 @@ sc_navigate_index(Argument* argument)
|
||||
{
|
||||
case UP:
|
||||
if(!gtk_tree_path_prev(path))
|
||||
is_valid_path = gtk_tree_path_up(path);
|
||||
is_valid_path = (gtk_tree_path_get_depth(path) > 1) && gtk_tree_path_up(path) ;
|
||||
else /* row above */
|
||||
{
|
||||
while(gtk_tree_view_row_expanded(treeview, path)) {
|
||||
@ -2476,7 +2476,7 @@ sc_navigate_index(Argument* argument)
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_valid_path)
|
||||
if (is_valid_path )
|
||||
gtk_tree_view_set_cursor(treeview, path, NULL, FALSE);
|
||||
|
||||
gtk_tree_path_free(path);
|
||||
|
Loading…
Reference in New Issue
Block a user