From fbcdf671f08cd2c7e60f35574231df0421112d99 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 6 Jan 2020 23:07:48 +0100 Subject: 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) --- src/popupwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/popupwin.c') diff --git a/src/popupwin.c b/src/popupwin.c index e65b4bf44..c6296dfd2 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -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; } } -- cgit v1.2.1