patch 9.0.0980: the keyboard state response may end up in a shell command
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.
diff --git a/src/normal.c b/src/normal.c
index 0d1eba7..3f48ad8 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -455,7 +455,7 @@
// Re-enable bracketed paste mode and modifyOtherKeys
out_str(T_BE);
- out_str(T_CTI);
+ out_str_t_TI();
}
if (langmap_active)