diff src/mouse.c @ 26332:8b7f01b39d79 v8.2.3697

patch 8.2.3697: cannot drag a popup without a border Commit: https://github.com/vim/vim/commit/0b74d00693f2ff5f45cb5808197df7d1aaa5cb41 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 29 17:38:02 2021 +0000 patch 8.2.3697: cannot drag a popup without a border Problem: Cannot drag a popup without a border. Solution: Add the "dragall" option. (closes https://github.com/vim/vim/issues/9218)
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Nov 2021 18:45:03 +0100
parents 0374f55a16be
children 050d49de7a66
line wrap: on
line diff
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -1636,8 +1636,9 @@ retnomove:
 	    {
 		return IN_UNKNOWN;
 	    }
-	    else if ((wp->w_popup_flags & (POPF_DRAG | POPF_RESIZE))
+	    else if (((wp->w_popup_flags & (POPF_DRAG | POPF_RESIZE))
 					      && popup_on_border(wp, row, col))
+				       || (wp->w_popup_flags & POPF_DRAGALL))
 	    {
 		popup_dragwin = wp;
 		popup_start_drag(wp, row, col);