summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 258548ed8a..2616afc42a 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -4485,6 +4485,15 @@ open_cmdwin(void)
return cmdwin_result;
}
+
+/*
+ * Return TRUE if in the cmdwin, not editing the command line.
+ */
+ int
+is_in_cmdwin(void)
+{
+ return cmdwin_type != 0 && get_cmdline_type() == NUL;
+}
#endif // FEAT_CMDWIN
/*