diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/terminal.c b/src/terminal.c index 46ed325a5..ae532dc72 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -2315,15 +2315,13 @@ term_paste_register(int prev_c UNUSED) long reglen = 0; int type; -#ifdef FEAT_CMDL_INFO if (add_to_showcmd(prev_c)) if (add_to_showcmd('"')) out_flush(); -#endif + c = term_vgetc(); -#ifdef FEAT_CMDL_INFO clear_showcmd(); -#endif + if (!term_use_loop()) // job finished while waiting for a character return; @@ -2702,16 +2700,14 @@ terminal_loop(int blocking) int prev_raw_c = raw_c; int prev_mod_mask = mod_mask; -#ifdef FEAT_CMDL_INFO if (add_to_showcmd(c)) out_flush(); -#endif + raw_c = term_vgetc(); c = raw_c_to_ctrl(raw_c); -#ifdef FEAT_CMDL_INFO clear_showcmd(); -#endif + if (!term_use_loop_check(TRUE) || in_terminal_loop != curbuf->b_term) // job finished while waiting for a character |