diff src/misc1.c @ 16011:de810c9651c8 v8.1.1011

patch 8.1.1011: indent from autoindent not removed from blank line commit https://github.com/vim/vim/commit/2ba4238818ca5ea52334de3037ef3729584cebf5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 16 18:11:07 2019 +0100 patch 8.1.1011: indent from autoindent not removed from blank line Problem: Indent from autoindent not removed from blank line. (Daniel Hahler) Solution: Do not reset did_ai when text follows. (closes https://github.com/vim/vim/issues/4119)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Mar 2019 18:15:06 +0100
parents c94b46f98b1a
children cd5c83115ec6
line wrap: on
line diff
--- 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);