forked from aniani/vim
patch 8.0.0330: illegal memory access after "vapo"
Problem: Illegal memory access after "vapo". (Dominique Pelle) Solution: Fix the cursor column.
This commit is contained in:
@@ -4241,7 +4241,11 @@ extend:
|
||||
* line, we get stuck there. Trap this here. */
|
||||
if (VIsual_mode == 'V' && start_lnum == curwin->w_cursor.lnum)
|
||||
goto extend;
|
||||
VIsual.lnum = start_lnum;
|
||||
if (VIsual.lnum != start_lnum)
|
||||
{
|
||||
VIsual.lnum = start_lnum;
|
||||
VIsual.col = 0;
|
||||
}
|
||||
VIsual_mode = 'V';
|
||||
redraw_curbuf_later(INVERTED); /* update the inversion */
|
||||
showmode();
|
||||
|
Reference in New Issue
Block a user