mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
win/TUI: workaround libuv LF => CRLF conversion #10558
Replace cud1 with \x1b[B because \n is CRLF on Windows (due to libuv). fix #9461
This commit is contained in:
parent
0d5f629208
commit
f6e779d939
@ -1585,6 +1585,11 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
|||||||
unibi_set_if_empty(ut, unibi_set_left_margin_parm, "\x1b[%i%p1%ds");
|
unibi_set_if_empty(ut, unibi_set_left_margin_parm, "\x1b[%i%p1%ds");
|
||||||
unibi_set_if_empty(ut, unibi_set_right_margin_parm, "\x1b[%i;%p2%ds");
|
unibi_set_if_empty(ut, unibi_set_right_margin_parm, "\x1b[%i;%p2%ds");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
// XXX: workaround libuv implicit LF => CRLF conversion. #10558
|
||||||
|
unibi_set_str(ut, unibi_cursor_down, "\x1b[B");
|
||||||
|
#endif
|
||||||
} else if (rxvt) {
|
} else if (rxvt) {
|
||||||
// 2017-04 terminfo.src lacks these. Unicode rxvt has them.
|
// 2017-04 terminfo.src lacks these. Unicode rxvt has them.
|
||||||
unibi_set_if_empty(ut, unibi_enter_italics_mode, "\x1b[3m");
|
unibi_set_if_empty(ut, unibi_enter_italics_mode, "\x1b[3m");
|
||||||
|
Loading…
Reference in New Issue
Block a user