mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 06:53:46 +01:00
Fix index navigation issues (Closes: #40).
Thanks to Serge Guelton for the patch.
This commit is contained in:
parent
8a61d93e75
commit
98094f05fb
@ -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