summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-key.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-03-24 13:22:41 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-03-24 13:22:41 +0100
commitb867c69477cf292d6cc88abe8741be475adc5120 (patch)
tree8c2e4f13abc6311ae9bc9a501d174a24b6651476 /src/gui/curses/gui-curses-key.c
parentb7d75cf45518cb497bf5450ad40eee9dc961c345 (diff)
downloadweechat-b867c69477cf292d6cc88abe8741be475adc5120.zip
core: convert tabs to spaces in text pasted (bug #25028)
Diffstat (limited to 'src/gui/curses/gui-curses-key.c')
-rw-r--r--src/gui/curses/gui-curses-key.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c
index d9589a498..92393ac9a 100644
--- a/src/gui/curses/gui-curses-key.c
+++ b/src/gui/curses/gui-curses-key.c
@@ -588,6 +588,9 @@ gui_key_read_cb (void *data, int fd)
/* remove final newline (if needed) */
gui_key_paste_remove_newline ();
+ /* replace tabs by spaces */
+ gui_key_paste_replace_tabs ();
+
/* stop bracketed mode */
gui_key_paste_bracketed_timer_remove ();
gui_key_paste_bracketed_stop ();