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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user