0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0096: cannot create tiny popup window in last column

Problem:    Cannot create tiny popup window in last column. (Daniel Steinberg)
Solution:   Remove position limit. (closes #5447)
This commit is contained in:
Bram Moolenaar
2020-01-06 23:07:48 +01:00
parent 1860bde9d3
commit fbcdf671f0
5 changed files with 67 additions and 37 deletions

View File

@@ -1222,8 +1222,8 @@ popup_adjust_position(win_T *wp)
|| wp->w_popup_pos == POPPOS_BOTLEFT))
{
wp->w_wincol = wantcol - 1;
if (wp->w_wincol >= Columns - 3)
wp->w_wincol = Columns - 3;
if (wp->w_wincol >= Columns - 1)
wp->w_wincol = Columns - 1;
}
}