forked from aniani/vim
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.
This commit is contained in:
@@ -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() */
|
||||
|
Reference in New Issue
Block a user