comparison 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
comparison
equal deleted inserted replaced
17820:f2422c9b0de7 17821:fe92aaf166c1
1119 } 1119 }
1120 1120
1121 wp->w_has_scrollbar = wp->w_want_scrollbar 1121 wp->w_has_scrollbar = wp->w_want_scrollbar
1122 && (wp->w_topline > 1 || lnum <= wp->w_buffer->b_ml.ml_line_count); 1122 && (wp->w_topline > 1 || lnum <= wp->w_buffer->b_ml.ml_line_count);
1123 if (wp->w_has_scrollbar) 1123 if (wp->w_has_scrollbar)
1124 {
1124 ++right_extra; 1125 ++right_extra;
1126 ++extra_width;
1127 }
1125 1128
1126 minwidth = wp->w_minwidth; 1129 minwidth = wp->w_minwidth;
1127 if (wp->w_popup_title != NULL && *wp->w_popup_title != NUL) 1130 if (wp->w_popup_title != NULL && *wp->w_popup_title != NUL)
1128 { 1131 {
1129 int title_len = vim_strsize(wp->w_popup_title) + 2 - extra_width; 1132 int title_len = vim_strsize(wp->w_popup_title) + 2 - extra_width;