From nobody Wed Oct 05 09:54:48 2022 X-Original-To: dev-commits-src-main@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 4Mj90S5lfCz4drhT; Wed, 5 Oct 2022 09:54:48 +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 4Mj90S5CMhz3CWy; Wed, 5 Oct 2022 09:54:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664963688; 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=bsznfuLfeYivUjTLpf94RPX18+qvrDZCSZgxJxZbBnk=; b=pSGsWKB0QSyru2aDqxJXV04jyPlI8pgEZC30QJPJ2HdPw6RT0xYx+EpCTZa86W2Kv6JSHT 2R57Ex9CkR8mlHIacGO29Wh59AmWnyhEQ74hKUoLLrHs0uQws3MQGbFpqmjJ36DMU0T4nh sDzdYmBtM5vDZ2L7Nt8iWutt3DlwA7+Bo+mmP9T/Hqy8hYSjd70TlvunsVN7j9h9wgY9Ib KJlIxkQFQ2nb0tGVtxyEidPkW/jrKkODUzhHdXom0nGgVKnnql2J7UADaKsx166ddrBKfK jlMUnb5+QGQ4A8hDfNReXK0U7nXWHDRVaLslvjQL5qvWBdkD3gy8gUtry47zUg== 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 4Mj90S4DDvzrxV; Wed, 5 Oct 2022 09:54:48 +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 2959smUp055911; Wed, 5 Oct 2022 09:54:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2959smwE055910; Wed, 5 Oct 2022 09:54:48 GMT (envelope-from git) Date: Wed, 5 Oct 2022 09:54:48 GMT Message-Id: <202210050954.2959smwE055910@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: d2d30464365e - main - vt(4): Clear paste buffer after pasting. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: d2d30464365ebaa9f4b04371f947fcffcc3975e1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664963688; 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=bsznfuLfeYivUjTLpf94RPX18+qvrDZCSZgxJxZbBnk=; b=wQW2+jje4d7Wx7wARxbsIiWyPBCl3MPCjKmlJ+TL/oGeqpo++Dol73dZ4fnO6XTx3JTEbY gnSNmEMzH/snzczNANlYKzQuP9g3JjHyMMCjNLkjFXf7+EWXFAwr9/8wUv1eo9dku+s6nN iROnS1BLCgyvk9HtE85E1hADDY3AxhIv65R5ScFEoxbZCuq1Z6n9AQK+QnV/okoEHrv0pa gOp3Kt98/kaqmFULoSxFcb+aL8NKonnqCWq9Ai19ZkV5umHBo21R1LECXjfXvXpMA0jx0+ 7nGsByZvHT2VLj6Al6c5DjjwyNPH8GzQQIFyU22Q7ZEMJAqXMK2crwe1lRvEmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664963688; a=rsa-sha256; cv=none; b=gre9r4qR3hVqgBAQbvFSMQA6L3yvZAxNmMjNTIEpvCG6GA7BEJ/zKYh/pEUqPKDBsxLk7b /FdENHMSUsmHJIF7tO7dHDIlCbJNTnJBgwuKeg1WwGycZNAzbLnjKSCdQT2oAsSuEWQiJL GqaBIcJ8yapgOdL1qeqNt2KocbcxaP8TqvFqM4JDru1ylEl2dwJfvK+CuoKGO5fYTgB7QS jPNHIAw7bBHxw0RpKPjocF0stYYIJNKKsCiHEcvQ+EJEhyRC9MYwCDACbRCKCJhWWaewR7 fOYjidSY4tSNN5Axyfh9D/Y6PT+XgInVyuXHLorKkaIlwjR4jYk+WP7YEOvFaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=d2d30464365ebaa9f4b04371f947fcffcc3975e1 commit d2d30464365ebaa9f4b04371f947fcffcc3975e1 Author: Ivan Quitschal AuthorDate: 2022-10-05 08:37:08 +0000 Commit: Hans Petter Selasky CommitDate: 2022-10-05 09:51:49 +0000 vt(4): Clear paste buffer after pasting. MFC after: 1 week Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D36042 --- 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 f0ea59e134ac..213b11bee8f5 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 */