diff options
author | crondog <patches@crondog.com> | 2015-07-21 21:28:17 +1000 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-07-21 19:36:21 -0400 |
commit | d6c97a85ff036e03b7fff202f111e65045bcc2bd (patch) | |
tree | c8d5c8a580f07fc728d2512ada5b84d6194b8230 | |
parent | bf9f50942d41c3d60eed5a253fff40f5e3b26d95 (diff) | |
download | rneovim-d6c97a85ff036e03b7fff202f111e65045bcc2bd.tar.gz rneovim-d6c97a85ff036e03b7fff202f111e65045bcc2bd.tar.bz2 rneovim-d6c97a85ff036e03b7fff202f111e65045bcc2bd.zip |
tui: Unconditionally enable bracketed paste mode #3060
There are more terminals which have bracketed paste support and it
doesnt seem to do any harm with terminals that dont support it eg screen
Reviewed-by: Marco Hinz <mh.codebro@gmail.com>
Reviewed-by: Michael Reed <Pyrohh@users.noreply.github.com>
"+1 Let's see what happens" Justin M. Keyes <justinkz@gmail.com>
-rw-r--r-- | src/nvim/tui/tui.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index a12ee880d6..1deab23b05 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -756,12 +756,10 @@ static void fix_terminfo(TUIData *data) unibi_set_if_empty(ut, unibi_from_status_line, "\x07"); } - if (STARTS_WITH(term, "xterm") || STARTS_WITH(term, "rxvt") || inside_tmux) { - data->unibi_ext.enable_bracketed_paste = (int)unibi_add_ext_str(ut, NULL, - "\x1b[?2004h"); - data->unibi_ext.disable_bracketed_paste = (int)unibi_add_ext_str(ut, NULL, - "\x1b[?2004l"); - } + data->unibi_ext.enable_bracketed_paste = (int)unibi_add_ext_str(ut, NULL, + "\x1b[?2004h"); + data->unibi_ext.disable_bracketed_paste = (int)unibi_add_ext_str(ut, NULL, + "\x1b[?2004l"); #define XTERM_SETAF \ "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m" |