summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-bar-window.h
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-10 12:42:55 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-03-25 18:53:12 +0100
commit99f6f9e454adb4385dc6b9db5c2c7ca8d05efa13 (patch)
tree5a63cf0bf2eeccf3748c629a17778c32c1dcfc94 /src/gui/curses/gui-curses-bar-window.h
parentcfaf68ae6172cf37c50d3aaac7ab4e88fa80c8ef (diff)
downloadweechat-99f6f9e454adb4385dc6b9db5c2c7ca8d05efa13.zip
core: When pasting, insert text in input instead of interpreting keys
This makes pasted text appear in the input bar, instead of each line being sent. This allows you to edit the text before sending it, and it makes multiline paste supported in buffers with input_multiline on. It also replaces \r with \n in pasted text because most terminals (e.g. xterm and urxvt) print lines separated by \r when pasting as if return was pressed between each line, even though the copied text uses \n. The text sent to the buffer should use \n, not \r, so we have to replace it. Note that this only works when bracketed paste is enabled or the paste confirmation as shown, because non-bracketed paste with no paste confirmation is not detected as a paste. Fixes a part of #1498
Diffstat (limited to 'src/gui/curses/gui-curses-bar-window.h')
0 files changed, 0 insertions, 0 deletions