mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:8.0.0330
Problem: Illegal memory access after "vapo". (Dominique Pelle)
Solution: Fix the cursor column.
84b2a38145
This commit is contained in:
@@ -3557,11 +3557,15 @@ extend:
|
|||||||
--start_lnum;
|
--start_lnum;
|
||||||
|
|
||||||
if (VIsual_active) {
|
if (VIsual_active) {
|
||||||
/* Problem: when doing "Vipipip" nothing happens in a single white
|
// Problem: when doing "Vipipip" nothing happens in a single white
|
||||||
* 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();
|
||||||
|
@@ -28,3 +28,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
|
||||||
|
@@ -622,7 +622,7 @@ static const int included_patches[] = {
|
|||||||
// 333,
|
// 333,
|
||||||
// 332,
|
// 332,
|
||||||
331,
|
331,
|
||||||
// 330,
|
330,
|
||||||
// 329,
|
// 329,
|
||||||
// 328,
|
// 328,
|
||||||
327,
|
327,
|
||||||
|
Reference in New Issue
Block a user