forked from aniani/vim
patch 9.0.0130: cursor position wrong when inserting around virtual text
Problem: Cursor position wrong when inserting around virtual text. Solution: Update the cursor position properly.
This commit is contained in:
@@ -1589,13 +1589,6 @@ win_line(
|
||||
n_attr_skip = added;
|
||||
}
|
||||
}
|
||||
|
||||
// If the cursor is on or after this position,
|
||||
// move it forward.
|
||||
if (wp == curwin
|
||||
&& lnum == curwin->w_cursor.lnum
|
||||
&& curwin->w_cursor.col >= vcol)
|
||||
curwin->w_cursor.col += n_extra;
|
||||
}
|
||||
// reset the ID in the copy to avoid it being used
|
||||
// again
|
||||
|
Reference in New Issue
Block a user