1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

core: scroll to bottom of window after reaching first or last highlight with keys alt+"p" / alt+"n"

This commit is contained in:
Peter Boström
2012-07-21 10:04:34 +02:00
committed by Sebastien Helleu
parent bd7332455d
commit 19d03e691b
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -1354,6 +1354,8 @@ gui_window_scroll_previous_highlight (struct t_gui_window *window)
}
ptr_line = ptr_line->prev_line;
}
/* no previous highlight, scroll to bottom */
gui_window_scroll_bottom (window);
}
}
}
@@ -1387,6 +1389,8 @@ gui_window_scroll_next_highlight (struct t_gui_window *window)
}
ptr_line = ptr_line->next_line;
}
/* no next highlight, scroll to bottom */
gui_window_scroll_bottom (window);
}
}
}