Function: evil-half-cursor
evil-half-cursor is a byte-compiled function defined in
evil-states.el.
Signature
(evil-half-cursor)
Documentation
Change cursor to a half-height box.
(This is really just a thick horizontal bar.)
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-states.el
;; the half-height "Operator-Pending cursor" cannot be specified
;; as a static `cursor-type' value, since its height depends on
;; the current font size
(defun evil-half-cursor ()
"Change cursor to a half-height box.
\(This is really just a thick horizontal bar.)"
(let ((height (/ (window-pixel-height) (* (window-height) 2))))
(setq cursor-type (cons 'hbar height))))