0
0
mirror of https://github.com/vim/vim.git synced 2025-11-06 10:07:45 -05:00

patch 8.1.1778: not showing the popup window right border is confusing

Problem:    Not showing the popup window right border is confusing.
Solution:   Also show the border when there is no close button. (closes #4747)
This commit is contained in:
Bram Moolenaar
2019-07-30 20:32:41 +02:00
parent f386f08ccb
commit 8c8b88d0cc
4 changed files with 8 additions and 11 deletions

View File

@@ -1080,13 +1080,8 @@ popup_adjust_position(win_T *wp)
{
int want_col = 0;
if (wp->w_popup_close == POPCLOSE_BUTTON)
// try to show the close button
want_col = left_extra + wp->w_width + right_extra;
else if (wp->w_has_scrollbar)
// try to show the scrollbar
want_col = left_extra + wp->w_width
+ right_extra - wp->w_popup_border[1];
// try to show the right border and any scrollbar
want_col = left_extra + wp->w_width + right_extra;
if (want_col > 0 && wp->w_wincol > 0
&& wp->w_wincol + want_col >= Columns)
{