]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix scrolling backwards in Helper-help
authorStefan Kangas <stefan@marxist.se>
Mon, 4 Jul 2022 13:06:52 +0000 (15:06 +0200)
committerStefan Kangas <stefan@marxist.se>
Mon, 4 Jul 2022 13:09:22 +0000 (15:09 +0200)
* lisp/emacs-lisp/helper.el (Helper-help-scroller): Fix scrolling
backwards.

lisp/emacs-lisp/helper.el

index 930dbfe6c49f2893483be6a7f604ec8fd0a04796..cbc0afc3a72cf7cb1a6ba4660969a80695132c72 100644 (file)
          (setq continue (read-event))
          (cond ((and (memq continue '(?\s ?\C-v)) (< state 2))
                 (scroll-up))
-               ((= continue ?\C-l)
+                ((eq continue ?\C-l)
                 (recenter))
-               ((and (= continue ?\177) (zerop (% state 2)))
+                ((and (or (eq continue 'backspace)
+                          (eq continue ?\177))
+                      (zerop (% state 2)))
                 (scroll-down))
                (t (setq continue nil))))))))