diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-10-03 12:08:30 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-10-03 12:08:30 +0200 |
commit | fab0d4e740c266f52c839ccfabd242f0e905e90d (patch) | |
tree | 7f158480441f6b4d14a06da9ddba57f8fae4d042 /src/core/wee-config.c | |
parent | 964de12a5488bc036be1a6f484d0ffe7524d2322 (diff) | |
download | weechat-fab0d4e740c266f52c839ccfabd242f0e905e90d.zip |
core: add option weechat.look.paste_auto_add_newline (closes #543)
Diffstat (limited to 'src/core/wee-config.c')
-rw-r--r-- | src/core/wee-config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 78a570d0f..247c2ea5a 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -148,6 +148,7 @@ struct t_config_option *config_look_mouse; struct t_config_option *config_look_mouse_timer_delay; struct t_config_option *config_look_nick_prefix; struct t_config_option *config_look_nick_suffix; +struct t_config_option *config_look_paste_auto_add_newline; struct t_config_option *config_look_paste_bracketed; struct t_config_option *config_look_paste_bracketed_timer_delay; struct t_config_option *config_look_paste_max_lines; @@ -2653,6 +2654,12 @@ config_weechat_init_options () N_("text to display after nick in prefix of message, example: \">\""), NULL, 0, 0, "", NULL, 0, NULL, NULL, &config_change_nick_prefix_suffix, NULL, NULL, NULL); + config_look_paste_auto_add_newline = config_file_new_option ( + weechat_config_file, ptr_section, + "paste_auto_add_newline", "boolean", + N_("automatically add a newline at the end of pasted text if there " + "are at least two lines and if a confirmation is asked"), + NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); config_look_paste_bracketed = config_file_new_option ( weechat_config_file, ptr_section, "paste_bracketed", "boolean", |