patch 9.1.1248: compile error when building without FEAT_QUICKFIX
Problem: compile error when building without FEAT_QUICKFIX
Solution: adjust ifdefs in popupwin.c, add CheckFeature quickfix
to a few tests (John Marriott, Hirohito Higashi)
closes: #16940
closes: #16962
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Co-authored-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/popupwin.c b/src/popupwin.c
index 46e5483..0cff7f6 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -40,11 +40,11 @@
// hit-enter prompt.
static int start_message_win_timer = FALSE;
-static int popup_on_cmdline = FALSE;
-
static void may_start_message_win_timer(win_T *wp);
#endif
+static int popup_on_cmdline = FALSE;
+
static void popup_adjust_position(win_T *wp);
/*
@@ -4587,15 +4587,6 @@
}
/*
- * Returns TRUE if a popup extends into the cmdline area.
- */
- int
-popup_overlaps_cmdline(void)
-{
- return popup_on_cmdline;
-}
-
-/*
* Close any info popup.
*/
void
@@ -4608,6 +4599,15 @@
}
#endif
+/*
+ * Returns TRUE if a popup extends into the cmdline area.
+ */
+ int
+popup_overlaps_cmdline(void)
+{
+ return popup_on_cmdline;
+}
+
#if defined(HAS_MESSAGE_WINDOW) || defined(PROTO)
/*