summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 169cb7a64..14ec21323 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -12529,6 +12529,20 @@ ex_folddo(exarg_T *eap)
}
#endif
+#ifdef FEAT_QUICKFIX
+/*
+ * Returns TRUE if the supplied Ex cmdidx is for a location list command
+ * instead of a quickfix command.
+ */
+ int
+is_loclist_cmd(int cmdidx)
+{
+ if (cmdidx < 0 || cmdidx > CMD_SIZE)
+ return FALSE;
+ return cmdnames[cmdidx].cmd_name[0] == 'l';
+}
+#endif
+
# if defined(FEAT_TIMERS) || defined(PROTO)
int
get_pressedreturn(void)