]> code.delx.au - gnu-emacs/blobdiff - lisp/xt-mouse.el
* lisp/xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil.
[gnu-emacs] / lisp / xt-mouse.el
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)))