diff options
| author | Aaron Jensen <aaronjensen@gmail.com> | 2018-05-24 03:56:37 -0700 |
|---|---|---|
| committer | Eivind Fonn <evfonn@gmail.com> | 2019-11-19 17:30:29 +0100 |
| commit | 434368aace2e44466140b50994e4058c9d5d60f7 (patch) | |
| tree | db4bedc1f4d324fad8b3899b7c32e79fecf24c84 /evil-commands.el | |
| parent | e9b16b744a14c1dab38f958831e3cb1b850f2263 (diff) | |
Prevent errant scroll on mouse click
See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31546
Diffstat (limited to 'evil-commands.el')
| -rw-r--r-- | evil-commands.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/evil-commands.el b/evil-commands.el index 0629e71..c15f3fd 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -4263,10 +4263,11 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by (bounds (window-edges start-window)) (make-cursor-line-fully-visible nil) (top (nth 1 bounds)) - (bottom (if (window-minibuffer-p start-window) - (nth 3 bounds) - ;; Don't count the mode line. - (1- (nth 3 bounds)))) + (bottom (if (or (window-minibuffer-p start-window) + (not mode-line-format)) + (nth 3 bounds) + ;; Don't count the mode line. + (1- (nth 3 bounds)))) (on-link (and mouse-1-click-follows-link (or mouse-1-click-in-non-selected-windows (eq start-window original-window)) |
