summaryrefslogtreecommitdiff
path: root/src/popupwin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-18 21:40:41 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-18 21:40:41 +0200
commitde2396fc875837c47b1c13f5e80e0a1200c5eb61 (patch)
tree54faaa93dc859a2529e32bb0d6d41935651a9299 /src/popupwin.c
parentd032f34a51c6722101626c4167dffecc427ac343 (diff)
downloadvim-git-de2396fc875837c47b1c13f5e80e0a1200c5eb61.tar.gz
patch 8.2.1239: "maxwidth" in 'completepopup' not obeyedv8.2.1239
Problem: "maxwidth" in 'completepopup' not obeyed. (Jay Sitter) Solution: Add separate field for value from option. (closes #6470)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r--src/popupwin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index b0b4737c7..fc69c90d9 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1620,6 +1620,7 @@ parse_popup_option(win_T *wp, int is_preview)
if (is_preview)
wp->w_minwidth = x;
wp->w_maxwidth = x;
+ wp->w_maxwidth_opt = x;
}
}
else if (STRNCMP(s, "highlight:", 10) == 0)