Function: evil-join-whitespace
evil-join-whitespace is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-join-whitespace BEG END)
Documentation
Join the selected lines without changing whitespace.
Like J (evil-join), but doesn't insert or remove any spaces.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-operator evil-join-whitespace (beg end)
"Join the selected lines without changing whitespace.
\\<evil-normal-state-map>Like \\[evil-join], \
but doesn't insert or remove any spaces."
:motion evil-line
(let ((count (count-lines beg end)))
(when (> count 1)
(setq count (1- count)))
(goto-char beg)
(dotimes (_ count)
(evil-move-end-of-line 1)
(unless (eobp)
(delete-char 1)))))