Skip to content

Commit

Permalink
[REF] Prefer aref to support older Emacs versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Aug 17, 2024
1 parent 7fdb983 commit eeb26fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typewriter-roll-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Argument POS cursor's position."
(defun typewriter-roll--check ()
"Check after typing whether to scroll up as in typewriter."
(when (or (typewriter-roll--is-backspace)
(eq last-command-event (char-from-name "SPACE")))
(unless (eq (char-before) (char-from-name "SPACE"))
(eq last-command-event (aref " " 0)))
(unless (eq (char-before) (aref " " 0))
(typewriter-roll--scroll-main (current-column))
(typewriter-roll--scroll-up))))

Expand Down

0 comments on commit eeb26fd

Please sign in to comment.