diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-01 21:11:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-01 21:11:05 +0200 |
commit | 9bcb70c18a740bf9d97a1420df5964618f218a89 (patch) | |
tree | d30e627ced878e523bf4ed499396123a526a21ef /src/ui.c | |
parent | 13b11eddcaf5176fb1127c8bc8f4b4f46bd05488 (diff) | |
download | vim-git-9bcb70c18a740bf9d97a1420df5964618f218a89.tar.gz |
patch 8.1.1787: cannot resize a popup windowv8.1.1787
Problem: Cannot resize a popup window.
Solution: Allow for resizing by dragging the lower right corncer.
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |