Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
14128:09afa19020db | 14129:cb731d098241 |
---|---|
1217 { | 1217 { |
1218 if (!exmode_active) | 1218 if (!exmode_active) |
1219 cmdline_row = msg_row; | 1219 cmdline_row = msg_row; |
1220 skip_redraw = TRUE; /* skip redraw once */ | 1220 skip_redraw = TRUE; /* skip redraw once */ |
1221 do_redraw = FALSE; | 1221 do_redraw = FALSE; |
1222 #ifdef FEAT_TERMINAL | |
1223 skip_term_loop = TRUE; | |
1224 #endif | |
1222 } | 1225 } |
1223 | 1226 |
1224 /* | 1227 /* |
1225 * If the window size changed set_shellsize() will redraw the screen. | 1228 * If the window size changed set_shellsize() will redraw the screen. |
1226 * Otherwise the screen is only redrawn if 'redraw' is set and no ':' | 1229 * Otherwise the screen is only redrawn if 'redraw' is set and no ':' |
2825 #endif | 2828 #endif |
2826 { | 2829 { |
2827 /* Since got_int is set all typeahead will be flushed, but we | 2830 /* Since got_int is set all typeahead will be flushed, but we |
2828 * want to keep this ':', remember that in a special way. */ | 2831 * want to keep this ':', remember that in a special way. */ |
2829 typeahead_noflush(':'); | 2832 typeahead_noflush(':'); |
2833 #ifdef FEAT_TERMINAL | |
2834 skip_term_loop = TRUE; | |
2835 #endif | |
2830 cmdline_row = Rows - 1; /* put ':' on this line */ | 2836 cmdline_row = Rows - 1; /* put ':' on this line */ |
2831 skip_redraw = TRUE; /* skip redraw once */ | 2837 skip_redraw = TRUE; /* skip redraw once */ |
2832 need_wait_return = FALSE; /* don't wait in main() */ | 2838 need_wait_return = FALSE; /* don't wait in main() */ |
2833 } | 2839 } |
2834 /* FALLTHROUGH */ | 2840 /* FALLTHROUGH */ |