Function: treemacs--evade-image

treemacs--evade-image is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs--evade-image)

Documentation

The cursor visibly blinks when on top of an icon.

It needs to be moved aside in a way that works for all indent depths and treemacs-indentation settings.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--evade-image ()
  "The cursor visibly blinks when on top of an icon.
It needs to be moved aside in a way that works for all indent depths and
`treemacs-indentation' settings."
  (inline-quote
   (when (eq major-mode 'treemacs-mode)
     (beginning-of-line)
     (when (eq 'image (car-safe (get-text-property (point) 'display)))
       (forward-char 1)))))