diff src/popupwin.c @ 17821:fe92aaf166c1 v8.1.1907

patch 8.1.1907: wrong position for info popup with scrollbar on the left Commit: https://github.com/vim/vim/commit/fe6e7618b4d05cb91679dbf7ed5983c95ff5b6a2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 21 20:57:20 2019 +0200 patch 8.1.1907: wrong position for info popup with scrollbar on the left Problem: Wrong position for info popup with scrollbar on the left. Solution: Take the scrollbar into account.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Aug 2019 21:00:04 +0200
parents e8a7029efa40
children 7e6b7a4f13bc
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1121,7 +1121,10 @@ popup_adjust_position(win_T *wp)
     wp->w_has_scrollbar = wp->w_want_scrollbar
 	   && (wp->w_topline > 1 || lnum <= wp->w_buffer->b_ml.ml_line_count);
     if (wp->w_has_scrollbar)
+    {
 	++right_extra;
+	++extra_width;
+    }
 
     minwidth = wp->w_minwidth;
     if (wp->w_popup_title != NULL && *wp->w_popup_title != NUL)