HomeFreeBSD

vt(4): When cutting a line, append a newline character.

Description

vt(4): When cutting a line, append a newline character.

While at it optimise "case 3" into a default.
This way there is no need to initialize the "mark" variable in the beginning,
because all cases set it.

Sponsored by: NVIDIA Networking
Differential Revision: https://reviews.freebsd.org/D36042

(cherry picked from commit 90b89100548f7fef4cbd4a8c76dc3d83ab786d7a)

Details

Provenance
tezeka_hotmail.comAuthored on Oct 5 2022, 9:20 AM
hselaskyCommitted on Oct 12 2022, 3:53 PM
Differential Revision
D36042: vt 3 clicks paste
Parents
rGbed7844abc6f: vt(4): Make sure pressing the extend button updates the current selection.
Branches
Unknown
Tags
Unknown