]> git.eshelyaron.com Git - emacs.git/commitdiff
Calc: fix interval entry (bug#39040)
authorMattias Engdegård <mattiase@acm.org>
Fri, 10 Jan 2020 18:49:56 +0000 (19:49 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 10 Jan 2020 19:03:51 +0000 (20:03 +0100)
* 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.

lisp/calc/calc.el

index d299c5bf5d367afe1558b384b8044a37d7d00d35..b519559330eb09ac8710b460a9f65762d1a9679d 100644 (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