diff src/evalfunc.c @ 15687:cb501b3c9fb5 v8.1.0851

patch 8.1.0851: feedkeys() with "L" does not work properly commit https://github.com/vim/vim/commit/8d4ce56a19ed14d13332f94ad592fff2d9a715d5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 30 22:01:40 2019 +0100 patch 8.1.0851: feedkeys() with "L" does not work properly Problem: feedkeys() with "L" does not work properly. Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi, closes #3885)
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Jan 2019 22:15:07 +0100
parents 772e72b046a3
children a3e2e7948ee4
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3705,15 +3705,18 @@ f_feedkeys(typval_T *argvars, typval_T *
 #endif
 	    }
 	    else
+	    {
 		ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE),
 				  insert ? 0 : typebuf.tb_len, !typed, FALSE);
-	    vim_free(keys_esc);
-	    if (vgetc_busy
+		if (vgetc_busy
 #ifdef FEAT_TIMERS
-		    || timer_busy
-#endif
-		    )
-		typebuf_was_filled = TRUE;
+			|| timer_busy
+#endif
+			)
+		    typebuf_was_filled = TRUE;
+	    }
+	    vim_free(keys_esc);
+
 	    if (execute)
 	    {
 		int save_msg_scroll = msg_scroll;