diff --git a/src/misc1.c b/src/misc1.c index 65d5e9ec5..5781aa5b3 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -1497,8 +1497,6 @@ open_line( ++less_cols_off; } } - if (*p_extra != NUL) - did_ai = FALSE; /* append some text, don't truncate now */ /* columns for marks adjusted for removed columns */ less_cols = (int)(p_extra - saved_line); diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index 9a60d018e..b35497fc2 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -399,8 +399,19 @@ func Test_edit_13() call feedkeys("A {\more\}\", 'tnix') call assert_equal(["\tabc {", "\t\tmore", "\t}"], getline(1, '$')) set smartindent& autoindent& - bw! + bwipe! endif + + " Test autoindent removing indent of blank line. + new + call setline(1, ' foo bar baz') + set autoindent + exe "normal 0eea\\\" + call assert_equal(" foo bar", getline(1)) + call assert_equal("", getline(2)) + call assert_equal(" baz", getline(3)) + set autoindent& + bwipe! endfunc func Test_edit_CR() diff --git a/src/version.c b/src/version.c index dc2d73d44..35b40ca3b 100644 --- a/src/version.c +++ b/src/version.c @@ -779,6 +779,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1011, /**/ 1010, /**/