]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 19 Jul 2014 16:56:40 +0000 (12:56 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 19 Jul 2014 16:56:40 +0000 (12:56 -0400)
Fixes: debbugs:18015
lisp/ChangeLog
lisp/xt-mouse.el

index a468cbfc801e244629b2ce7f57204390e1c373fd..bf2024ac9b6c35afa87c95103aafab3d10767dc6 100644 (file)
@@ -1,5 +1,8 @@
 2014-07-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil
+       (bug#18015).
+
        * rect.el (rectangle--string-preview): Don't assume there
        a non-nil default (bug#17984).
 
index 59f1eb8c8875e301d184de2ee72cc41eb109ba47..cad3151b244c73bfd4c9dc5b6b2e1b8d1089f619 100644 (file)
@@ -250,7 +250,7 @@ which is the \"1006\" extension implemented in Xterm >= 277."
            ((not (string-match "down-" name))
             ;; For up events, make the up side match the down side.
             (setq this-time last-time)
-            (when (and (> click-count 1)
+            (when (and click-count (> click-count 1)
                        (string-match "down-" last-name)
                        (equal name (replace-match "" t t last-name)))
               (xterm-mouse--set-click-count event click-count)))