From nobody Wed Oct 12 15:54:19 2022 X-Original-To: dev-commits-src-all@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 4Mncf36K9nz4fdN2; Wed, 12 Oct 2022 15:54:19 +0000 (UTC) (envelope-from git@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 4Mncf34BLBz3H6Q; Wed, 12 Oct 2022 15:54:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590059; 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; bh=IpGp2Ujzxv2pEMhu1oQl8d3Y+XCv5sQKZm9FaGJAA4k=; b=QWeN6MZi905Zfr3Lk1JtSsZ8UR3TJ8FL6U7vGAB0DFM0oX3sFVZFjGeqgWPu5cc2Xm0evk bbJISXo0SFowyLDcZ26FsGhv3VWFsoheXQt0WBkvsrHh9qAXW5FpX54ykaDajvulmvX+be pgbAFPa3BF8ANcFABc9R6f+Sh4PGlyPwkXwlLDgk9tU5TRt6y3M5Z41528j4GhV7RlrWi2 dha52imctfPsxCtIG/yyDTscRj8r32wCskn8qdU06mON7a0khjE/wFpGhrkuVEEIyTBhpY 74fPzBgHNq1m06Ll/OcxdgsjvBiSAZLSzBaDqLJfAUTdauixBKfhNR9h8MVhCw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Mncf33JTnz1MMB; Wed, 12 Oct 2022 15:54:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29CFsJmA043909; Wed, 12 Oct 2022 15:54:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29CFsJKt043908; Wed, 12 Oct 2022 15:54:19 GMT (envelope-from git) Date: Wed, 12 Oct 2022 15:54:19 GMT Message-Id: <202210121554.29CFsJKt043908@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 90536729a46c - stable/13 - vt(4): Clear paste buffer after pasting. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 90536729a46cdc14fc77bbaf9ba2cc9501024e87 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590059; 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; bh=IpGp2Ujzxv2pEMhu1oQl8d3Y+XCv5sQKZm9FaGJAA4k=; b=QS+vRFC0q7CinI9zcDldRU6epPdyEXLODG9Q72HVscRjBP61l7Is7CzHAfi743005JKOpm rGATJ/qs1n9qMoDCmlvoM1NHt9mNxpCz7FK4qvd6IHFIJEbeTSNsazTGea/KeoxJLI8AJ8 avBqW7r052u1lyPPX5gcF0Uw0dNM1/MF9DL8bFS8vK0WoCu7Qj9N6hY36v0n9DGtrtWPK7 qR7N7KyHcY0eFAlz5AH5DLZwI3JGpC5nJ61vXx0f+GUqQS4xL/qoi6ZA456mHprL4wQ6F4 GFXQ4cgjDE6CMWg8+Ho6h8F/DANUgXmw8EQV7Xsl4U/+5GsedKvuO3XfwsMTAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665590059; a=rsa-sha256; cv=none; b=kMERjIvSmvv8UL84athufRAsf8TEq8IWSy0NhiZnVqJvt+t7tyRI8CtFqb0r4a3EGGMKZs 6HsOXag/iCxvpiVNswgU/Z0gzjMcw9euQLD+2IcOoxKnxR7FPBRTz/IVnUiUenlvrDpb84 b14yCWlUaWAUPyigWxOLgVQEUQRRTv13cauzdIWOHuhEdLnffzvwlcCkPLIidYvDH/o8Rv aO9TyltPontxpXEZ1DaI/TV9iSfNPYYrJad1nuICF3c+7ybyN8oBnWc5jdUKX5LdkcyC5y ppwvhtBSSTLzakXC8AN1cSLG8LyG3FQd6QpuehiKyp9LFiG79BoYd3kRq1KrNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=90536729a46cdc14fc77bbaf9ba2cc9501024e87 commit 90536729a46cdc14fc77bbaf9ba2cc9501024e87 Author: Ivan Quitschal AuthorDate: 2022-10-05 08:37:08 +0000 Commit: Hans Petter Selasky CommitDate: 2022-10-12 15:53:21 +0000 vt(4): Clear paste buffer after pasting. Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D36042 (cherry picked from commit d2d30464365ebaa9f4b04371f947fcffcc3975e1) --- sys/dev/vt/vt_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 1e0225fc2ea3..bfe0ffd48249 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -2227,6 +2227,10 @@ vt_mouse_event(int type, int x, int y, int event, int cnt, int mlevel) break; default: vt_mouse_paste(); + /* clear paste buffer selection after paste */ + vtbuf_set_mark(&vw->vw_buf, VTB_MARK_START, + vd->vd_mx / vf->vf_width, + vd->vd_my / vf->vf_height); break; } return; /* Done */