mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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>
This commit is contained in:
parent
bf9f50942d
commit
d6c97a85ff
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user