mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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. */
|
* line, we get stuck there. Trap this here. */
|
||||||
if (VIsual_mode == 'V' && start_lnum == curwin->w_cursor.lnum)
|
if (VIsual_mode == 'V' && start_lnum == curwin->w_cursor.lnum)
|
||||||
goto extend;
|
goto extend;
|
||||||
|
if (VIsual.lnum != start_lnum)
|
||||||
|
{
|
||||||
VIsual.lnum = start_lnum;
|
VIsual.lnum = start_lnum;
|
||||||
|
VIsual.col = 0;
|
||||||
|
}
|
||||||
VIsual_mode = 'V';
|
VIsual_mode = 'V';
|
||||||
redraw_curbuf_later(INVERTED); /* update the inversion */
|
redraw_curbuf_later(INVERTED); /* update the inversion */
|
||||||
showmode();
|
showmode();
|
||||||
|
@@ -36,3 +36,10 @@ func Test_Visual_ctrl_o()
|
|||||||
set tw&
|
set tw&
|
||||||
bw!
|
bw!
|
||||||
endfu
|
endfu
|
||||||
|
|
||||||
|
func Test_Visual_vapo()
|
||||||
|
new
|
||||||
|
normal oxx
|
||||||
|
normal vapo
|
||||||
|
bwipe!
|
||||||
|
endfunc
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
330,
|
||||||
/**/
|
/**/
|
||||||
329,
|
329,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user