summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-12-01 12:03:47 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-01 12:03:47 +0000
commit733a69b29f0b0c3d2ddca463a41bdd912379bc5e (patch)
tree65bc4282dda846e701691450320de90c07cf5e44 /src/ex_getln.c
parent4f501171f7ba8fe3d24c7e5bf5fcec5b5f246df1 (diff)
patch 9.0.0980: the keyboard state response may end up in a shell commandv9.0.0980
Problem: The keyboard state response may end up in a shell command. Solution: Only request the keyboard protocol state when the typeahead is empty, no more commands are following and not exiting. Add the t_RK termcap entry for this.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 72f2a3aabf..44049c7618 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -2908,6 +2908,9 @@ getexmodeline(
long sw;
char_u *s;
+ // May request the keyboard protocol state now.
+ may_send_t_RK();
+
if (ga_grow(&line_ga, 40) == FAIL)
break;