summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-16 20:54:51 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-16 20:54:51 +0200
commit4033c55eca575777718c0701e26635a0cc47d907 (patch)
tree8dc460ad495106198a9119b52f6505033f7a75b3 /src/popupmnu.c
parente738a1a033cd31cd2568ba99a9e2dca1e65b45ea (diff)
downloadvim-git-4033c55eca575777718c0701e26635a0cc47d907.tar.gz
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 58e38176c..23e871190 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -60,7 +60,7 @@ pum_display(
int above_row;
int below_row;
int redo_count = 0;
-#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+#if defined(FEAT_QUICKFIX)
win_T *pvwin;
#endif
@@ -80,7 +80,7 @@ redo:
row = curwin->w_wrow + W_WINROW(curwin);
-#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+#if defined(FEAT_QUICKFIX)
FOR_ALL_WINDOWS(pvwin)
if (pvwin->w_p_pvw)
break;
@@ -156,7 +156,7 @@ redo:
if (pum_height < 1 || (pum_height == 1 && size > 1))
return;
-#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+#if defined(FEAT_QUICKFIX)
/* If there is a preview window at the above avoid drawing over it. */
if (pvwin != NULL && pum_row < above_row && pum_height > above_row)
{
@@ -551,7 +551,7 @@ pum_set_selected(int n, int repeat)
}
}
-#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
+#if defined(FEAT_QUICKFIX)
/*
* Show extra info in the preview window if there is something and
* 'completeopt' contains "preview".
@@ -715,9 +715,7 @@ pum_undisplay(void)
{
pum_array = NULL;
redraw_all_later(SOME_VALID);
-#ifdef FEAT_WINDOWS
redraw_tabline = TRUE;
-#endif
status_redraw_all();
}