Commit a54493b0 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil.

Fixes: debbugs:18015
parent bf0d3f76
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).
 
......
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment