diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-01-10 19:49:56 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-01-10 20:03:51 +0100 |
commit | c556aabde8bdfae6c3d896d22d992e8d62176832 (patch) | |
tree | 2c5978a411b802080ac0393541f33c1d5ee5acd4 /lisp/calc | |
parent | 91cd3c13722976b6ed47da98fdda49358f801356 (diff) | |
download | emacs-c556aabde8bdfae6c3d896d22d992e8d62176832.tar.gz |
Calc: fix interval entry (bug#39040)
* lisp/calc/calc.el (calcDigit-start): Initialise calc-prev-char to
something more reasonable, so that non-algebraic entry of intervals
whose start is a single digit, like (1..10), works properly.
Reported by Michel Schinz.
Diffstat (limited to 'lisp/calc')
-rw-r--r-- | lisp/calc/calc.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index d299c5bf5d3..b519559330e 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -2288,7 +2288,7 @@ the United States." (calc-alg-digit-entry) (setq calc-aborted-prefix nil) (let* ((calc-digit-value nil) - (calc-prev-char nil) + (calc-prev-char last-command-event) (calc-prev-prev-char nil) (calc-buffer (current-buffer)) (buf |