Merge pull request #7310 from ckelsel/vim-8.0.0330

vim-patch:8.0.0330
This commit is contained in:
James McCoy
2017-09-26 16:56:19 -04:00
committed by GitHub
3 changed files with 16 additions and 5 deletions

View File

@@ -3557,11 +3557,15 @@ extend:
--start_lnum;
if (VIsual_active) {
/* Problem: when doing "Vipipip" nothing happens in a single white
* line, we get stuck there. Trap this here. */
if (VIsual_mode == 'V' && start_lnum == curwin->w_cursor.lnum)
// Problem: when doing "Vipipip" nothing happens in a single white
// line, we get stuck there. Trap this here.
if (VIsual_mode == 'V' && start_lnum == curwin->w_cursor.lnum) {
goto extend;
}
if (VIsual.lnum != start_lnum) {
VIsual.lnum = start_lnum;
VIsual.col = 0;
}
VIsual_mode = 'V';
redraw_curbuf_later(INVERTED); /* update the inversion */
showmode();

View File

@@ -28,3 +28,10 @@ func Test_Visual_ctrl_o()
set tw&
bw!
endfu
func Test_Visual_vapo()
new
normal oxx
normal vapo
bwipe!
endfunc

View File

@@ -622,7 +622,7 @@ static const int included_patches[] = {
333,
// 332,
331,
// 330,
330,
// 329,
328,
327,