diff options
Diffstat (limited to 'src/gui/gui-key.c')
-rw-r--r-- | src/gui/gui-key.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c index 97c50c5c3..436d878af 100644 --- a/src/gui/gui-key.c +++ b/src/gui/gui-key.c @@ -1,7 +1,7 @@ /* * gui-key.c - keyboard functions (used by all GUI) * - * Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org> + * Copyright (C) 2003-2016 Sébastien Helleu <flashcode@flashtux.org> * * This file is part of WeeChat, the extensible chat client. * @@ -1816,7 +1816,8 @@ gui_key_paste_accept () * add final newline if there is not in pasted text * (for at least 2 lines pasted) */ - if ((gui_key_get_paste_lines () > 1) + if (CONFIG_BOOLEAN(config_look_paste_auto_add_newline) + && (gui_key_get_paste_lines () > 1) && (gui_key_buffer_size > 0) && (gui_key_buffer[gui_key_buffer_size - 1] != '\r') && (gui_key_buffer[gui_key_buffer_size - 1] != '\n')) |