diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-25 17:52:11 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-25 17:52:11 +0000 |
commit | 464fc8abdf937e6dcbf0361613d6576de597c67c (patch) | |
tree | 22a1f4f8d43ca1c3d8821d414f0358f55f4f7aed /src/common | |
parent | 1e4c1a707327399672aabfe2dbd0bd8c97efa6fc (diff) | |
download | weechat-464fc8abdf937e6dcbf0361613d6576de597c67c.zip |
Added new scroll keys for a few lines up/down (default: meta-pgup/pgdn) (patch from Pistos)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/weeconfig.c | 5 | ||||
-rw-r--r-- | src/common/weeconfig.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index ae1402a50..8ca02e811 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -73,6 +73,7 @@ char *cfg_look_charset_decode_utf; char *cfg_look_charset_encode; char *cfg_look_charset_internal; int cfg_look_one_server_buffer; +int cfg_look_scroll_amount; char *cfg_look_buffer_timestamp; int cfg_look_color_nicks_number; int cfg_look_color_actions; @@ -137,6 +138,10 @@ t_config_option weechat_options_look[] = N_("use same buffer for all servers"), OPTION_TYPE_BOOLEAN, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, NULL, NULL, &cfg_look_one_server_buffer, NULL, config_change_one_server_buffer }, + { "look_scroll_amount", N_("how many lines to scroll by with scroll_up and scroll_down"), + N_("how many lines to scroll by with scroll_up and scroll_down"), + OPTION_TYPE_INT, 1, INT_MAX, 3, + NULL, NULL, &cfg_look_scroll_amount, NULL, config_change_buffer_content }, { "look_buffer_timestamp", N_("timestamp for buffers"), N_("timestamp for buffers"), OPTION_TYPE_STRING, 0, 0, 0, diff --git a/src/common/weeconfig.h b/src/common/weeconfig.h index f606382d5..81e140a2d 100644 --- a/src/common/weeconfig.h +++ b/src/common/weeconfig.h @@ -92,6 +92,7 @@ extern char *cfg_look_charset_decode_utf; extern char *cfg_look_charset_encode; extern char *cfg_look_charset_internal; extern int cfg_look_one_server_buffer; +extern int cfg_look_scroll_amount; extern char *cfg_look_buffer_timestamp; extern int cfg_look_color_nicks_number; extern int cfg_look_color_actions; |