aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2022-10-05 09:40:01 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2022-10-05 09:51:41 +0000
commit4ea90153ac792afd0f8c3db845a09176c8d6dfa3 (patch)
tree36b6079c364a583a8b596c6e12de66967e8c656d
parentfbc9f1b2d6cf90c02b918671fb7791cf36472cfd (diff)
downloadsrc-4ea90153ac792afd0f8c3db845a09176c8d6dfa3.tar.gz
src-4ea90153ac792afd0f8c3db845a09176c8d6dfa3.zip
vt(4): Make sure pressing the extend button updates the current selection.
MFC after: 1 week Sponsored by: NVIDIA Networking
-rw-r--r--sys/dev/vt/vt_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 8f9e1cf6d2b2..ba39daec06e3 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -2191,7 +2191,7 @@ vt_mouse_event(int type, int x, int y, int event, int cnt, int mlevel)
vd->vd_mx = x;
vd->vd_my = y;
- if (vd->vd_mstate & MOUSE_BUTTON1DOWN)
+ if (vd->vd_mstate & (MOUSE_BUTTON1DOWN | VT_MOUSE_EXTENDBUTTON))
vtbuf_set_mark(&vw->vw_buf, VTB_MARK_MOVE,
vd->vd_mx / vf->vf_width,
vd->vd_my / vf->vf_height);