diff src/message.c @ 14129:cb731d098241 v8.1.0082

patch 8.1.0082: in terminal window, typing : at more prompt, inserts ':' commit https://github.com/vim/vim/commit/1d4754f96fa5bff1c349cdb71560c55675f50d03 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 19 17:49:24 2018 +0200 patch 8.1.0082: in terminal window, typing : at more prompt, inserts ':' Problem: In terminal window, typing : at more prompt, inserts ':' instead of starting another Ex command. Solution: Add skip_term_loop and set it when putting ':' in the typeahead buffer.
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jun 2018 18:00:07 +0200
parents e124262d435e
children 2ad722003b36
line wrap: on
line diff
--- a/src/message.c
+++ b/src/message.c
@@ -1219,6 +1219,9 @@ wait_return(int redraw)
 	    cmdline_row = msg_row;
 	skip_redraw = TRUE;	    /* skip redraw once */
 	do_redraw = FALSE;
+#ifdef FEAT_TERMINAL
+	skip_term_loop = TRUE;
+#endif
     }
 
     /*
@@ -2827,6 +2830,9 @@ do_more_prompt(int typed_char)
 		/* Since got_int is set all typeahead will be flushed, but we
 		 * want to keep this ':', remember that in a special way. */
 		typeahead_noflush(':');
+#ifdef FEAT_TERMINAL
+		skip_term_loop = TRUE;
+#endif
 		cmdline_row = Rows - 1;		/* put ':' on this line */
 		skip_redraw = TRUE;		/* skip redraw once */
 		need_wait_return = FALSE;	/* don't wait in main() */