feature/evil: fix evil-ex-hl-do-update-highlight errors

This commit is contained in:
Henrik Lissner 2017-03-15 22:47:15 -04:00
parent 75d8ee079d
commit a6b524f3a3

View file

@ -31,7 +31,6 @@
evil-magic t evil-magic t
evil-echo-state t evil-echo-state t
evil-indent-convert-tabs t evil-indent-convert-tabs t
evil-ex-interactive-search-highlight 'selected-window
evil-ex-search-vim-style-regexp t evil-ex-search-vim-style-regexp t
evil-ex-substitute-global t evil-ex-substitute-global t
evil-ex-visual-char-range t ; column range for ex commands evil-ex-visual-char-range t ; column range for ex commands
@ -98,13 +97,6 @@
(advice-add 'evil-window-split :after '+evil*window-follow) (advice-add 'evil-window-split :after '+evil*window-follow)
(advice-add 'evil-window-vsplit :after '+evil*window-vfollow) (advice-add 'evil-window-vsplit :after '+evil*window-vfollow)
;; Fix harmless (yet disruptive) error reporting w/ hidden buffers
;; caused by dead popup windows
;; TODO Delete timer on dead windows?
(defun +evil*ignore-hl-errors (orig-fn &rest args)
(ignore-errors (apply orig-fn args)))
(advice-add 'evil-ex-hl-do-update-highlight :around '+evil*ignore-hl-errors)
;; monkey patch `evil-ex-replace-special-filenames' to add more ex ;; monkey patch `evil-ex-replace-special-filenames' to add more ex
;; substitution flags to evil-mode ;; substitution flags to evil-mode
(advice-add 'evil-ex-replace-special-filenames (advice-add 'evil-ex-replace-special-filenames