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

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.
This commit is contained in:
Bram Moolenaar
2019-08-21 20:57:20 +02:00
parent c1f87c9a31
commit fe6e7618b4
12 changed files with 60 additions and 36 deletions

View File

@@ -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)