aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-12-13 21:33:06 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-12-13 21:33:26 +0800
commit1386d36e7687edb1b65e338045eaff37ab32d582 (patch)
treeb76c101031a5c8f735405858b626ae6ff4db2b4a
parent8a0b203875610ce61539492c5aceb9c72e959806 (diff)
downloadrneovim-1386d36e7687edb1b65e338045eaff37ab32d582.tar.gz
rneovim-1386d36e7687edb1b65e338045eaff37ab32d582.tar.bz2
rneovim-1386d36e7687edb1b65e338045eaff37ab32d582.zip
vim-patch:9.1.092: vim-patch:9.1.0923: wrong MIN macro in popupmenu.c
Problem: wrong MIN macro in popupmenu.c (after v9.1.0921) (zeertzjq) Solution: change it to MAX() https://github.com/vim/vim/commit/618c4d36ca92a62212a37e787c202229ceff8537 Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: glepnir <glephunter@gmail.com>
-rw-r--r--src/nvim/popupmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c
index 744b2fd82e..5dc9ddfd60 100644
--- a/src/nvim/popupmenu.c
+++ b/src/nvim/popupmenu.c
@@ -377,7 +377,7 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i
}
}
} else if (pum_width > content_width && pum_width > p_pw) {
- pum_width = MIN(content_width, (int)p_pw);
+ pum_width = MAX(content_width, (int)p_pw);
}
}
} else if (max_col - min_col < def_width) {