Function: evil-visual-update-x-selection
evil-visual-update-x-selection is a byte-compiled function defined in
evil-states.el.
Signature
(evil-visual-update-x-selection &optional BUFFER)
Documentation
Update the X selection with the current visual region of BUFFER.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-states.el
(defun evil-visual-update-x-selection (&optional buffer)
"Update the X selection with the current visual region of BUFFER."
(let ((buf (or buffer (current-buffer))))
(when (and evil-visual-update-x-selection-p
(buffer-live-p buf)
(evil-visual-state-p)
(display-selections-p)
(not (eq evil-visual-selection 'block)))
(with-current-buffer buf
(evil-set-selection 'PRIMARY (buffer-substring-no-properties
evil-visual-beginning
evil-visual-end))))))