summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-21 15:30:45 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-21 15:30:45 +0200
commit9cb698d5647db9299bb5b4b846c23f2015b7262b (patch)
tree0cf40300dfd9d4d5e3ca96dc938b782ce2edc1aa /src/popupmnu.c
parentbd483b3f577ee1af7c8c8bf440f5d81613336975 (diff)
downloadvim-git-9cb698d5647db9299bb5b4b846c23f2015b7262b.tar.gz
patch 8.1.1903: cannot build without the +eval featurev8.1.1903
Problem: Cannot build without the +eval feature. Solution: Add missing #ifdefs
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index f82683ca4..5b76da582 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -632,7 +632,7 @@ pum_redraw(void)
* must be recomputed.
*/
static int
-pum_set_selected(int n, int repeat)
+pum_set_selected(int n, int repeat UNUSED)
{
int resized = FALSE;
int context = pum_height / 2;
@@ -996,6 +996,7 @@ pum_get_height(void)
return pum_height;
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Add size information about the pum to "dict".
*/
@@ -1011,6 +1012,7 @@ pum_set_event_info(dict_T *dict)
dict_add_number(dict, "size", pum_size);
dict_add_special(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE);
}
+#endif
#if defined(FEAT_BEVAL_TERM) || defined(FEAT_TERM_POPUP_MENU) || defined(PROTO)
static void