diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-19 17:49:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-19 17:49:24 +0200 |
commit | 1d4754f96fa5bff1c349cdb71560c55675f50d03 (patch) | |
tree | ee74895e049c81e4d4e7e0ab9f7ea27d8bc3a6e9 /src/message.c | |
parent | f07f9e731eb97bbdbd1b0b3983750589e4f557a6 (diff) | |
download | vim-git-1d4754f96fa5bff1c349cdb71560c55675f50d03.tar.gz |
patch 8.1.0082: in terminal window, typing : at more prompt, inserts ':'v8.1.0082
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.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index 9384aa623..fd087a4a7 100644 --- 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() */ |