[Bug 263084] vt: Paste pads from EOL to end of screen with whitespace characters
Date: Wed, 06 Apr 2022 17:29:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263084 Ed Maste <emaste@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=2609 | |63 --- Comment #4 from Ed Maste <emaste@freebsd.org> --- (In reply to Stefan B. from comment #3) So both sc and vt are buggy, but sc's bug is definitely less objectionable. Keeping track of "printed a space" vs "empty" character cells will be needed to properly address this and PR260963, but until that happens we should handle it the same way as sc. Presumably just: for each line in copied region: if RH column contains space copy full line to selection buffer else search backwards to find last non-space char copy line from first col until last non-space to selection buffer add \r\n src reference: vtbuf_extract_marked() -- You are receiving this mail because: You are the assignee for the bug.