mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.0252: cursor in wrong place after virtual text
Problem: Cursor in wrong place after virtual text. Solution: Do not change the length of a virtual text property. (closes #10964)
This commit is contained in:
@@ -2127,7 +2127,8 @@ adjust_prop(
|
||||
else
|
||||
prop->tp_col += added;
|
||||
}
|
||||
else if (prop->tp_len > 0 && prop->tp_col + prop->tp_len > col)
|
||||
else if (prop->tp_len > 0 && prop->tp_col + prop->tp_len > col
|
||||
&& prop->tp_id >= 0) // don't change length for virtual text
|
||||
{
|
||||
int after = col - added - (prop->tp_col - 1 + prop->tp_len);
|
||||
|
||||
|
Reference in New Issue
Block a user