[paint] yank newline handling #2464

This commit is contained in:
nick black 2021-12-12 10:16:29 -05:00
parent 4106a2888a
commit a7ea84ea7d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -299,12 +299,6 @@ paint(ncplane* p, struct crender* rvec, int dstleny, int dstlenx,
if(nccell_wide_right_p(targc)){
continue;
}
// if we encounter a newline (always a bare linefeed; Windows CRLF
// translation only matters for text stdio), we're done with this
// line *for this plane*.
if(targc->gcluster == '\n'){
break;
}
if(nccell_fg_alpha(targc) > NCALPHA_OPAQUE){
const nccell* vis = &p->fb[nfbcellidx(p, y, x)];