forked from aniani/vim
patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol
Problem: wrong cursor position with 'showbreak' and lcs-eol
Solution: Add size of 'showbreak' before when 'listchars' "eol" is used.
Also fix wrong cursor position with wrapping virtual text on
empty line and 'showbreak'.
closes: #12891
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
committed by
Christian Brabandt
parent
c51fa7bc46
commit
1193951beb
@@ -1212,7 +1212,8 @@ curs_columns(
|
||||
// column
|
||||
char_u *sbr = get_showbreak_value(curwin);
|
||||
if (*sbr && *ml_get_cursor() == NUL
|
||||
&& curwin->w_wcol == vim_strsize(sbr))
|
||||
&& curwin->w_wcol
|
||||
== (curwin->w_width - width2) + vim_strsize(sbr))
|
||||
curwin->w_wcol = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user