0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-08-01 21:11:05 +02:00
parent 13b11eddca
commit 9bcb70c18a
14 changed files with 121 additions and 24 deletions

View File

@@ -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