diff src/popupwin.c @ 17334:1ac1d34bbdbf v8.1.1666

patch 8.1.1666: click in popup window scrollbar with border doesn't scroll commit https://github.com/vim/vim/commit/bd42b31780794fa751597cf3aa4d1d01889b1494 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 12 16:35:34 2019 +0200 patch 8.1.1666: click in popup window scrollbar with border doesn't scroll Problem: Click in popup window scrollbar with border doesn't scroll. Solution: Correct column for the border. (Naruhiko Nishino, closes https://github.com/vim/vim/issues/4650)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jul 2019 16:45:05 +0200
parents 61f0bf94ef92
children d82b0cfb1e82
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -317,7 +317,7 @@ popup_handle_scrollbar_click(win_T *wp, 
 	return;
     if (row >= wp->w_popup_border[0]
 	    && row < height - wp->w_popup_border[2]
-	    && col == popup_width(wp) - 1)
+	    && col == popup_width(wp) - wp->w_popup_border[1] - 1)
     {
 	if (row >= height / 2)
 	{