mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 03:16:01 +01:00
Fix index navigation issues (Closes: #40).
Thanks to Serge Guelton for the patch.
This commit is contained in:
parent
5a2af2bc71
commit
33ac8b2c33
1 changed files with 2 additions and 2 deletions
|
@ -2428,7 +2428,7 @@ sc_navigate_index(Argument* argument)
|
||||||
{
|
{
|
||||||
case UP:
|
case UP:
|
||||||
if(!gtk_tree_path_prev(path))
|
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 */
|
else /* row above */
|
||||||
{
|
{
|
||||||
while(gtk_tree_view_row_expanded(treeview, path)) {
|
while(gtk_tree_view_row_expanded(treeview, path)) {
|
||||||
|
@ -2476,7 +2476,7 @@ sc_navigate_index(Argument* argument)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_valid_path)
|
if (is_valid_path )
|
||||||
gtk_tree_view_set_cursor(treeview, path, NULL, FALSE);
|
gtk_tree_view_set_cursor(treeview, path, NULL, FALSE);
|
||||||
|
|
||||||
gtk_tree_path_free(path);
|
gtk_tree_path_free(path);
|
||||||
|
|
Loading…
Reference in a new issue