]> code.delx.au - gnu-emacs/commitdiff
Fix mouse dragging of vertical dividers with scroll bars on left (Bug#23690)
authorMartin Rudalics <rudalics@gmx.at>
Sun, 5 Jun 2016 09:50:47 +0000 (11:50 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sun, 5 Jun 2016 09:50:47 +0000 (11:50 +0200)
* lisp/mouse.el (mouse-drag-line): With scroll bars on the left
adjust trailing edge of window on the left when dragging the
vertical divider of the mode line.  (Bug#23690)

lisp/mouse.el

index fa355ffeb71e605f7577d2f1a7b865d17ef0892a..592338ad09d41d053e78d5a3ec39caacce4257e3 100644 (file)
@@ -406,7 +406,15 @@ must be one of the symbols `header', `mode', or `vertical'."
                           (or (not resize-mini-windows)
                               (eq minibuffer-window
                                   (active-minibuffer-window)))))))
-         (setq draggable nil))))
+         (setq draggable nil)))
+     ((eq line 'vertical)
+      (let ((divider-width (frame-right-divider-width frame)))
+        (when (and (or (not (numberp divider-width))
+                       (zerop divider-width))
+                   (eq (cdr (assq 'vertical-scroll-bars
+                                  (frame-parameters frame)))
+                       'left))
+       (setq window (window-in-direction 'left window t))))))
 
     (let* ((exitfun nil)
            (move