From nobody Wed Apr 06 17:29:14 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BE3911AA1949 for ; Wed, 6 Apr 2022 17:29:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYWhp38x3z4tSb for ; Wed, 6 Apr 2022 17:29:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 491691F6A1 for ; Wed, 6 Apr 2022 17:29:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 236HTEjp075750 for ; Wed, 6 Apr 2022 17:29:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 236HTEI3075749 for bugs@FreeBSD.org; Wed, 6 Apr 2022 17:29:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263084] vt: Paste pads from EOL to end of screen with whitespace characters Date: Wed, 06 Apr 2022 17:29:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: vt X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649266154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IzSo2EAZ5vNxnJvT/ex0q4yYzUpeS3tFRy1u3Jlz1S8=; b=ZJiE03g+v5JaK1TrkLcB8Lgv9HGYIxfUjNSmoU2PaPQPItAcEFl2/byElk0Ue624fO4kkS ERtUL1C9uBKBGpkCqbfFWJVBuXFW79QfK1mDIDrWf69fgvU3EdlcNHohZbAcd8Y9gRRUIv frlrrg+Mk2lUtgvCajhvsw7+QNbW7ZMHmxyrWNDFRiZ5jD501EzHpUsW+ENLO/pFdtNMvW 8sxH/mu7/BW8/nWyFo7L7Ewx4YLYmxVmlT3Fg2Jn2gvsAkxcTpJ2tEG43IWk98wKBNrpfj ilcxxnPxaWnE+mlXWYTy3yfi7krTfXk2ncCv3xEebLQPclEZbL10pzIgdqe1YQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649266154; a=rsa-sha256; cv=none; b=fSOTrf/hLwcCOgUNbGNxHpnYlFoRura17ioJxufj9jTxM+zTWlfbPW4BOZtSizkCYTcX/w U90ecgJPyRZnIZmvG/NwWvX9DoH5ZAN9ZrthFEg3QwYZUAeNBmQ+dWgY6FDczc0ky0kNKe G6avzeHrAie2AB4xUcMKLnN3kSITWVHrF0Yau/OjoM0LMhjNvk7g70L8jyu0VXjNSE+bQG c7H9HC9YTReK4VhOSp/SF29Y4gTpvyQCIv1+tcody8EmDqYpdcMhO4V7KDJhEBpA0s1xRW 6zHri3JlxOG20b96lkEmvKB6M9JIyg/BBSUb2q4bXS5zUjga/8xVfvOvLyndTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263084 Ed Maste 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 --- (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.=