summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-07-17 18:04:44 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-07-17 18:04:44 +0200
commitbee56c3b7fa6ef0ce820a8f0a7e5e51b95aa3fab (patch)
treebaf4ce859032ae40b8445bb59661eaa07d8f4a27 /src/core/wee-command.c
parent7389514c0977f3c85faf0cd52db5b9e9759cc5f6 (diff)
downloadweechat-bee56c3b7fa6ef0ce820a8f0a7e5e51b95aa3fab.zip
core: add option "scroll_beyond_end" for command /window (task #6745)
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 3daf55edc..2bad83267 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -5611,6 +5611,13 @@ COMMAND_CALLBACK(window)
return WEECHAT_RC_OK;
}
+ /* scroll beyond the end of buffer */
+ if (string_strcasecmp (argv[1], "scroll_beyond_end") == 0)
+ {
+ gui_window_scroll_beyond_end (ptr_win);
+ return WEECHAT_RC_OK;
+ }
+
/* scroll to previous highlight */
if (string_strcasecmp (argv[1], "scroll_previous_highlight") == 0)
{
@@ -6744,7 +6751,7 @@ command_init ()
" || scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]"
" || scroll_horiz [-window <number>] [+/-]<value>[%]"
" || scroll_up|scroll_down|scroll_top|"
- "scroll_bottom|scroll_previous_highlight|"
+ "scroll_bottom|scroll_beyond_end|scroll_previous_highlight|"
"scroll_next_highlight|scroll_unread [-window <number>]"
" || swap [-window <number>] [up|down|left|right]"
" || zoom[-window <number>]"),
@@ -6777,6 +6784,7 @@ command_init ()
" scroll_down: scroll a few lines down\n"
" scroll_top: scroll to top of buffer\n"
"scroll_bottom: scroll to bottom of buffer\n"
+ "scroll_beyond_end: scroll beyond the end of buffer\n"
"scroll_previous_highlight: scroll to previous highlight\n"
"scroll_next_highlight: scroll to next highlight\n"
"scroll_unread: scroll to unread marker\n"
@@ -6818,6 +6826,7 @@ command_init ()
" || scroll_down -window %(windows_numbers)"
" || scroll_top -window %(windows_numbers)"
" || scroll_bottom -window %(windows_numbers)"
+ " || scroll_beyond_end -window %(windows_numbers)"
" || scroll_previous_highlight -window %(windows_numbers)"
" || scroll_next_highlight -window %(windows_numbers)"
" || scroll_unread -window %(windows_numbers)"