aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/popupmenu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c
index 75f1c93ed7..4ce4f9632f 100644
--- a/src/nvim/popupmenu.c
+++ b/src/nvim/popupmenu.c
@@ -391,6 +391,8 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i
if (p_pmw > 0 && pum_width > p_pmw) {
pum_width = (int)p_pmw;
}
+ } else if (p_pmw > 0 && pum_width > p_pmw) {
+ pum_width = (int)p_pmw;
}
}
} else if (max_col - min_col < def_width) {