Date: Wed, 06 Apr 2022 17:29:14 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263084] vt: Paste pads from EOL to end of screen with whitespace characters Message-ID: <bug-263084-227-zMrnHjCmfu@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-263084-227@https.bugs.freebsd.org/bugzilla/> References: <bug-263084-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263084 Ed Maste <emaste@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 609 | |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 neede= d 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() --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263084-227-zMrnHjCmfu>