ui/doom-modeline: fix evil visual block indicator #895

This commit is contained in:
Henrik Lissner 2018-09-18 13:21:24 -04:00
parent 6a44cf0124
commit d332f00ca7

View file

@ -595,7 +595,7 @@ segment.")
(def-modeline-segment! selection-info (def-modeline-segment! selection-info
"Information about the current selection, such as how many characters and "Information about the current selection, such as how many characters and
lines are selected, or the NxM dimensions of a block selection." lines are selected, or the NxM dimensions of a block selection."
(when (and mark-active (active)) (when (and (active) (or mark-active (eq evil-state 'visual)))
(cl-destructuring-bind (beg . end) (cl-destructuring-bind (beg . end)
(if (eq evil-state 'visual) (if (eq evil-state 'visual)
(cons evil-visual-beginning evil-visual-end) (cons evil-visual-beginning evil-visual-end)