branch: elpa/dirvish commit 2682932fb407f233712fe39cf5028163586be0f1 Author: Alex Lu <hellosimon1...@hotmail.com> Commit: Alex Lu <hellosimon1...@hotmail.com>
fix(core): hide cursor correctly --- dirvish.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dirvish.el b/dirvish.el index 807095d147..74bda86f6a 100644 --- a/dirvish.el +++ b/dirvish.el @@ -986,9 +986,9 @@ use `car'. If HEADER, use `dirvish-header-line-height' instead." "Hide cursor in dirvish buffer." (when dirvish-hide-cursor (setq-local cursor-type nil) - (cond ((and (boundp 'evil-normal-state-cursor) (featurep 'evil)) + (cond ((bound-and-true-p evil-normal-state-cursor) (setq-local evil-normal-state-cursor '(bar . 0))) - ((and (boundp 'meow-cursor-type-default) (featurep 'meow)) + ((bound-and-true-p meow-cursor-type-default) (setq-local meow-cursor-type-motion nil meow-cursor-type-default nil)))))