ui/doom-dashboard: disable visual mode in post-command-hook too

This commit is contained in:
Henrik Lissner 2018-03-20 00:00:21 -04:00
parent 8f21154e50
commit b68fa3b120
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -93,6 +93,10 @@ Possible values:
(defun +doom-dashboard|reposition-point ()
"Trap the point in the buttons."
(when (region-active-p)
(deactivate-mark t)
(when (bound-and-true-p evil-mode)
(evil-change-to-previous-state)))
(or (ignore-errors
(if (button-at (point))
(forward-button 0)