1
0
forked from aniani/vim

patch 9.0.0143: cursor positioned after virtual text in empty line

Problem:    Cursor positioned after virtual text in empty line.
Solution:   Keep cursor in the first column. (closes #10786)
This commit is contained in:
Bram Moolenaar
2022-08-05 13:07:23 +01:00
parent 2f83cc4cfa
commit afd2aa79ed
7 changed files with 26 additions and 3 deletions

View File

@@ -1127,7 +1127,7 @@ win_lbr_chartabsize(
size = win_chartabsize(wp, s, vcol);
# ifdef FEAT_PROP_POPUP
if (cts->cts_has_prop_with_text)
if (cts->cts_has_prop_with_text && *line != NUL)
{
int i;
int col = (int)(s - line);