forked from aniani/vim
patch 8.2.4969: changing text in Visual mode may cause invalid memory access
Problem: Changing text in Visual mode may cause invalid memory access. Solution: Check the Visual position after making a change.
This commit is contained in:
@@ -548,6 +548,9 @@ changed_common(
|
||||
curwin->w_changelistidx = curbuf->b_changelistlen;
|
||||
}
|
||||
|
||||
if (VIsual_active)
|
||||
check_visual_pos();
|
||||
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp)
|
||||
{
|
||||
if (wp->w_buffer == curbuf)
|
||||
|
Reference in New Issue
Block a user