Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
21376:8c028ece0248 | 21377:47f25a0c5a42 |
---|---|
1618 if (wp != NULL) | 1618 if (wp != NULL) |
1619 { | 1619 { |
1620 if (is_preview) | 1620 if (is_preview) |
1621 wp->w_minwidth = x; | 1621 wp->w_minwidth = x; |
1622 wp->w_maxwidth = x; | 1622 wp->w_maxwidth = x; |
1623 wp->w_maxwidth_opt = x; | |
1623 } | 1624 } |
1624 } | 1625 } |
1625 else if (STRNCMP(s, "highlight:", 10) == 0) | 1626 else if (STRNCMP(s, "highlight:", 10) == 0) |
1626 { | 1627 { |
1627 if (wp != NULL) | 1628 if (wp != NULL) |