Function: evil-rectangle-expand

evil-rectangle-expand is a byte-compiled function defined in evil-types.el.

Signature

(evil-rectangle-expand BEG END &rest PROPERTIES)

Documentation

Perform expand transformation on rectangle from BEG to END with PROPERTIES.

Like exclusive, but for rectangles: the last column is excluded.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20260728.1438/evil-types.el
(evil-define-type rectangle
  "Like `exclusive', but for rectangles:
the last column is excluded."
  :expand (lambda (beg end)
            ;; select at least one column
            (if (= (evil-column beg) (evil-column end))
                (evil-expand beg end 'block)
              (evil-range beg end 'block))))