Skip to content

Commit

Permalink
don't attempt to enter a null evil state
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed Sep 18, 2024
1 parent 562f9ed commit 11d83db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rigpa-mode-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ MODE."
(name (if current-lithium-mode
(rigpa-name-for-lithium-mode
current-lithium-mode)
(rigpa--local-recall-mode)))
(evil-state-fn (rigpa-evil-state-by-name name)))
(funcall evil-state-fn)))
(rigpa--local-recall-mode))))
(when name
(funcall
(rigpa-evil-state-by-name name)))))

(defun rigpa-enter-mode (mode-name)
"Enter mode MODE-NAME.
Expand Down

0 comments on commit 11d83db

Please sign in to comment.