The branch stable/13 has been updated by hselasky:

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

commit 90536729a46cdc14fc77bbaf9ba2cc9501024e87
Author:     Ivan Quitschal <[email protected]>
AuthorDate: 2022-10-05 08:37:08 +0000
Commit:     Hans Petter Selasky <[email protected]>
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 */

Reply via email to