Mercurial > vim
diff src/ui.c @ 17216:11f3cf51d43b v8.1.1608
patch 8.1.1608: the evalfunc.c file is too big
commit https://github.com/vim/vim/commit/f9c85f580b3792f6b95107412972f5360d412ef0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 29 07:41:35 2019 +0200
patch 8.1.1608: the evalfunc.c file is too big
Problem: The evalfunc.c file is too big.
Solution: Move sign functionality to sign.c.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 Jun 2019 07:45:06 +0200 |
parents | f16cee6adf29 |
children | 5169811b3044 |
line wrap: on
line diff
--- a/src/ui.c +++ b/src/ui.c @@ -2998,7 +2998,7 @@ retnomove: return IN_OTHER_WIN; #endif #ifdef FEAT_TEXT_PROP - // Continue a modeless selection in a popup window. + // Continue a modeless selection in a popup window or dragging it. if (in_popup_win) { if (popup_dragwin != NULL) @@ -3056,6 +3056,9 @@ retnomove: popup_start_drag(wp); return IN_UNKNOWN; } + if (which_button == MOUSE_LEFT) + // If the click is in the scrollbar, may scroll up/down. + popup_handle_scrollbar_click(wp, row, col); # ifdef FEAT_CLIPBOARD return IN_OTHER_WIN; # else @@ -3517,7 +3520,7 @@ mouse_find_win(int *rowp, int *colp, mou { if (*rowp >= wp->w_winrow && *rowp < wp->w_winrow + popup_height(wp) && *colp >= wp->w_wincol - && *colp < wp->w_wincol + popup_width(wp)) + && *colp < wp->w_wincol + popup_width(wp)) pwp = wp; } if (pwp != NULL)