From 239dd464d5af94c7136de7d61841d62d59bcf796 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 2 Oct 2008 18:54:06 +0200 Subject: Add new option scroll_page_percent to choose percent of height to scroll with page_up and page_down keys (task #8702) --- src/core/wee-config.c | 7 +++++++ src/core/wee-config.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/core') diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 5053680e3..83a069269 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -98,6 +98,7 @@ struct t_config_option *config_look_read_marker; struct t_config_option *config_look_save_config_on_exit; struct t_config_option *config_look_save_layout_on_exit; struct t_config_option *config_look_scroll_amount; +struct t_config_option *config_look_scroll_page_percent; struct t_config_option *config_look_set_title; /* config, colors section */ @@ -1061,6 +1062,12 @@ config_weechat_init () N_("how many lines to scroll by with scroll_up and " "scroll_down"), NULL, 1, INT_MAX, "3", NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); + config_look_scroll_page_percent = config_file_new_option ( + weechat_config_file, ptr_section, + "scroll_page_percent", "integer", + N_("percent of screen to scroll when scrolling one page up or down " + "(for example 100 means one page, 50 half-page)"), + NULL, 1, 100, "100", NULL, NULL, NULL, NULL, NULL, NULL); config_look_set_title = config_file_new_option ( weechat_config_file, ptr_section, "set_title", "boolean", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index afa4c05fa..dee0e6fe7 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -104,6 +104,7 @@ extern struct t_config_option *config_look_read_marker; extern struct t_config_option *config_look_save_config_on_exit; extern struct t_config_option *config_look_save_layout_on_exit; extern struct t_config_option *config_look_scroll_amount; +extern struct t_config_option *config_look_scroll_page_percent; extern struct t_config_option *config_look_set_title; extern struct t_config_option *config_color_separator; -- cgit v1.2.3