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.
This commit is contained in:
Mattias Engdegård 2020-01-10 19:49:56 +01:00
parent 91cd3c1372
commit c556aabde8

View file

@ -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