summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 0a4bb2a4248..256a39eb220 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2835,11 +2835,11 @@ LSHIFTBY is the numeric value of this modifier, in keyboard events.
PREFIX is the string that represents this modifier in an event type symbol."
(if (numberp event)
(cond ((eq symbol 'control)
- (if (and (< (downcase event) ?z)
- (> (downcase event) ?a))
+ (if (and (<= (downcase event) ?z)
+ (>= (downcase event) ?a))
(- (downcase event) ?a -1)
- (if (and (< (downcase event) ?Z)
- (> (downcase event) ?A))
+ (if (and (<= (downcase event) ?Z)
+ (>= (downcase event) ?A))
(- (downcase event) ?A -1)
(logior (lsh 1 lshiftby) event))))
((eq symbol 'shift)