Function: evil-resize-window
evil-resize-window is a byte-compiled function defined in
evil-commands.el.
Signature
(evil-resize-window NEW-SIZE &optional HORIZONTAL)
Documentation
Set the current window's width or height to NEW-SIZE.
If HORIZONTAL is non-nil the width of the window is changed, otherwise its height is changed.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-resize-window (new-size &optional horizontal)
"Set the current window's width or height to NEW-SIZE.
If HORIZONTAL is non-nil the width of the window is changed,
otherwise its height is changed."
(let ((count (- new-size (if horizontal (window-width) (window-height)))))
(enlarge-window count horizontal)))