forked from aniani/vim
patch 9.0.1327: cursor in wrong position below line with virtual text below
Problem: Cursor in wrong position below line with virtual text below ending in multi-byte character. Solution: When checking for last character take care of multi-byte character.
This commit is contained in:
@@ -1196,7 +1196,7 @@ win_lbr_chartabsize(
|
||||
|| (tp->tp_col == MAXCOL
|
||||
&& ((tp->tp_flags & TP_FLAG_ALIGN_ABOVE)
|
||||
? col == 0
|
||||
: (s[0] == NUL || s[1] == NUL)
|
||||
: (s[0] == NUL || s[charlen] == NUL)
|
||||
&& cts->cts_with_trailing)))
|
||||
&& -tp->tp_id - 1 < gap->ga_len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user