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

View File

@ -1,12 +1,14 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.9-dev, 2012-07-20
v0.3.9-dev, 2012-07-21
Version 0.3.9 (under dev!)
--------------------------
* core: scroll to bottom of window after reaching first or last highlight with
keys alt+"p" / alt+"n"
* core: add support of arrays in hdata variables
* core: add command line option "-r" (or "--run-command") to run command(s)
after startup of WeeChat

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);
}
}
}