Mercurial > vim
diff src/ui.c @ 17580:d5e5d0fc3fa8 v8.1.1787
patch 8.1.1787: cannot resize a popup window
commit https://github.com/vim/vim/commit/9bcb70c18a740bf9d97a1420df5964618f218a89
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 1 21:11:05 2019 +0200
patch 8.1.1787: cannot resize a popup window
Problem: Cannot resize a popup window.
Solution: Allow for resizing by dragging the lower right corncer.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Aug 2019 21:15:07 +0200 |
parents | 696030820746 |
children | 10696f279e20 |
line wrap: on
line diff
--- a/src/ui.c +++ b/src/ui.c @@ -3067,10 +3067,11 @@ retnomove: popup_close_for_mouse_click(wp); return IN_UNKNOWN; } - else if (wp->w_popup_drag && popup_on_border(wp, row, col)) + else if ((wp->w_popup_flags & (POPF_DRAG | POPF_RESIZE)) + && popup_on_border(wp, row, col)) { popup_dragwin = wp; - popup_start_drag(wp); + popup_start_drag(wp, row, col); return IN_UNKNOWN; } // Only close on release, otherwise it's not possible to drag or do