diff src/popupwin.c @ 21377:47f25a0c5a42 v8.2.1239

patch 8.2.1239: "maxwidth" in 'completepopup' not obeyed Commit: https://github.com/vim/vim/commit/de2396fc875837c47b1c13f5e80e0a1200c5eb61 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 18 21:40:41 2020 +0200 patch 8.2.1239: "maxwidth" in 'completepopup' not obeyed Problem: "maxwidth" in 'completepopup' not obeyed. (Jay Sitter) Solution: Add separate field for value from option. (closes https://github.com/vim/vim/issues/6470)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Jul 2020 21:45:03 +0200
parents 3d73cdd173ab
children 1d1ffb0dbd87
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1620,6 +1620,7 @@ parse_popup_option(win_T *wp, int is_pre
 		if (is_preview)
 		    wp->w_minwidth = x;
 		wp->w_maxwidth = x;
+		wp->w_maxwidth_opt = x;
 	    }
 	}
 	else if (STRNCMP(s, "highlight:", 10) == 0)