patch 9.0.0747: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Gradudate the +cmdline_info feature. (Martin Tournoij,
closes #11330)
diff --git a/src/terminal.c b/src/terminal.c
index 46ed325..ae532dc 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -2315,15 +2315,13 @@
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 @@
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