summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorPeter Boström <pbos@kth.se>2012-07-21 10:04:34 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-21 10:04:34 +0200
commit19d03e691b58bcffe1358580e7ab88bcc573ec80 (patch)
tree9763e52e74e25f4b37a8116fe639d397dc5984b3 /src/gui
parentbd7332455d7e896fcddae7fc9fd9c6aed49b7fbe (diff)
downloadweechat-19d03e691b58bcffe1358580e7ab88bcc573ec80.zip
core: scroll to bottom of window after reaching first or last highlight with keys alt+"p" / alt+"n"
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c
index 8f8f51021..a1cb23c3d 100644
--- a/src/gui/gui-window.c
+++ b/src/gui/gui-window.c
@@ -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);
}
}
}