diff options
author | erw7 <erw7.github@gmail.com> | 2019-07-21 11:50:11 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-23 11:45:38 +0200 |
commit | f6e779d939c0d3c67496daa296b6e78ed10a92b5 (patch) | |
tree | 6b2442f5a6995d59dedcda0d5d7a6dfa996d2340 /src | |
parent | 0d5f629208bc916bdefaea690177846e9269b4fa (diff) | |
download | rneovim-f6e779d939c0d3c67496daa296b6e78ed10a92b5.tar.gz rneovim-f6e779d939c0d3c67496daa296b6e78ed10a92b5.tar.bz2 rneovim-f6e779d939c0d3c67496daa296b6e78ed10a92b5.zip |
win/TUI: workaround libuv LF => CRLF conversion #10558
Replace cud1 with \x1b[B because \n is CRLF on Windows (due to libuv).
fix #9461
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/tui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 42e5b9b270..307166bc41 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -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_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) { // 2017-04 terminfo.src lacks these. Unicode rxvt has them. unibi_set_if_empty(ut, unibi_enter_italics_mode, "\x1b[3m"); |