Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 15:54:19 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 90536729a46c - stable/13 - vt(4): Clear paste buffer after pasting.
Message-ID:  <202210121554.29CFsJKt043908@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=90536729a46cdc14fc77bbaf9ba2cc9501024e87

commit 90536729a46cdc14fc77bbaf9ba2cc9501024e87
Author:     Ivan Quitschal <tezeka@hotmail.com>
AuthorDate: 2022-10-05 08:37:08 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210121554.29CFsJKt043908>