From 243881ed1372458823182c219d71c43e9d174ddc Mon Sep 17 00:00:00 2001 From: Jan D Date: Wed, 14 Jul 2010 19:53:42 +0200 Subject: [PATCH] * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127 now that unicode is used (Bug#6594). --- lisp/ChangeLog | 5 +++++ lisp/xt-mouse.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4655469ed54..b44d00d72d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-07-14 Jan Djärv + + * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127 + now that unicode is used (Bug#6594). + 2010-07-14 Chong Yidong * simple.el (push-mark-command): Set the selection if diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index 2d38c6e827c..f802103fbd7 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el @@ -122,8 +122,8 @@ ;; read xterm sequences above ascii 127 (#x7f) (defun xterm-mouse-event-read () (let ((c (read-char))) - (if (< c 0) - (+ c #x8000000 128) + (if (> c #x3FFF80) + (+ 128 (- c #x3FFF80)) c))) (defun xterm-mouse-truncate-wrap (f) -- 2.39.2