comparison 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
comparison
equal deleted inserted replaced
17333:65c1e105c8ab 17334:1ac1d34bbdbf
315 315
316 if (wp->w_has_scrollbar == 0) 316 if (wp->w_has_scrollbar == 0)
317 return; 317 return;
318 if (row >= wp->w_popup_border[0] 318 if (row >= wp->w_popup_border[0]
319 && row < height - wp->w_popup_border[2] 319 && row < height - wp->w_popup_border[2]
320 && col == popup_width(wp) - 1) 320 && col == popup_width(wp) - wp->w_popup_border[1] - 1)
321 { 321 {
322 if (row >= height / 2) 322 if (row >= height / 2)
323 { 323 {
324 // Click in lower half, scroll down. 324 // Click in lower half, scroll down.
325 if (wp->w_topline < wp->w_buffer->b_ml.ml_line_count) 325 if (wp->w_topline < wp->w_buffer->b_ml.ml_line_count)