diff src/popupwin.c @ 19071:48e0208f53c2 v8.2.0096

patch 8.2.0096: cannot create tiny popup window in last column Commit: https://github.com/vim/vim/commit/fbcdf671f08cd2c7e60f35574231df0421112d99 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 6 23:07:48 2020 +0100 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 https://github.com/vim/vim/issues/5447)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Jan 2020 23:15:03 +0100
parents 5fbb167591fc
children 8db080710015
line wrap: on
line diff
--- 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;
 	}
     }