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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user