From 11d83db9548c744572edae8b0989069e5c8e52d9 Mon Sep 17 00:00:00 2001 From: Siddhartha Date: Tue, 17 Sep 2024 20:55:34 -0700 Subject: [PATCH] don't attempt to enter a null evil state --- rigpa-mode-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rigpa-mode-mode.el b/rigpa-mode-mode.el index fac6240..ae6cb01 100644 --- a/rigpa-mode-mode.el +++ b/rigpa-mode-mode.el @@ -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.