Skip to content

Commit

Permalink
Remove permanent-local-hook from evil-ex-teardown
Browse files Browse the repository at this point in the history
This commit fixes the following error:

    Error in minibuffer-exit-hook (evil-ex-teardown): (wrong-type-argument stringp nil)
  • Loading branch information
axelf4 committed Dec 29, 2024
1 parent 1319708 commit cc1a7bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions evil-ex.el
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ the initial input is the visual region '<,'> or `<,`>. The variable
":"
(or initial-input
(and previous-command (propertize previous-command 'face 'shadow)))
evil-ex-completion-map nil 'evil-ex-history nil t)))
evil-ex-completion-map nil 'evil-ex-history)))
(if evil--ex-expression
(eval evil--ex-expression t)
(when (string= s "") (setq s previous-command))
Expand Down Expand Up @@ -466,10 +466,9 @@ in case of incomplete or unknown commands."
"Deinitialize Ex minibuffer.
Clean up everything set up by `evil-ex-setup'."
;; Call ex--update one last time, in case after-change-functions are combined
(evil--ex-update nil nil nil (minibuffer-contents-no-properties))
(evil--ex-update)
(let ((runner (evil-ex-argument-handler-runner evil--ex-argument-handler)))
(when runner (funcall runner 'stop))))
(put 'evil-ex-teardown 'permanent-local-hook t)

(defvar-local evil--ex-echo-overlay nil
"Overlay for displaying info messages during Ex.")
Expand Down

0 comments on commit cc1a7bd

Please sign in to comment.