summaryrefslogtreecommitdiff
path: root/src/popupmenu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-01 15:23:11 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-01 15:23:11 +0100
commit5a4c3082d7ab51b3d448a91578479c96c1ab0ad3 (patch)
treea25f441743857c618f3f019372a284b1d57c4e0d /src/popupmenu.c
parent9625d3d92d93be52f5d89a57b27ba2400e0fc6d2 (diff)
downloadvim-git-5a4c3082d7ab51b3d448a91578479c96c1ab0ad3.tar.gz
patch 8.1.2373: cannot build with +popupwin but without +quickfixv8.1.2373
Problem: Cannot build with +popupwin but without +quickfix. (John Marriott) Solution: Adjust #ifdefs.
Diffstat (limited to 'src/popupmenu.c')
-rw-r--r--src/popupmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/popupmenu.c b/src/popupmenu.c
index f11ae943a..76255aa97 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -621,7 +621,7 @@ pum_redraw(void)
#endif
}
-#if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)
+#if (defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)) || defined(PROTO)
/*
* Position the info popup relative to the popup menu item.
*/
@@ -683,7 +683,7 @@ pum_set_selected(int n, int repeat UNUSED)
#ifdef FEAT_QUICKFIX
int prev_selected = pum_selected;
#endif
-#ifdef FEAT_PROP_POPUP
+#if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)
int has_info = FALSE;
#endif