From nobody Mon Feb 21 03:21:12 2022 X-Original-To: bugs@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 1183919C3942 for ; Mon, 21 Feb 2022 03:21:12 +0000 (UTC) (envelope-from bugzilla-noreply@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 4K26yb5hN3z4qjv for ; Mon, 21 Feb 2022 03:21:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 A499AAEE for ; Mon, 21 Feb 2022 03:21:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21L3LBLn065328 for ; Mon, 21 Feb 2022 03:21:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21L3LB5v065327 for bugs@FreeBSD.org; Mon, 21 Feb 2022 03:21:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261553] vt newcons: double click does not mark whole word if word starts at beginning of line Date: Mon, 21 Feb 2022 03:21:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645413671; 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: in-reply-to:in-reply-to:references:references; bh=2i0anjclqnnYpOmVjZRX9fVAluAjS0gzaOIxGRu+Kfg=; b=LqZW3kAHw0+CbJAK70YoC2CSP/b3DHM1KhQ6nS9Z1eJ6pgjck3MamXJSAP7jodMSz6cHnW 7zIrjNvEi0XdW4sNHFhwyqdieyXgONtUuB8OfUvG9BanWNr9vTkBln4DRWcCMpV7UsbIEG rE9X3zyiF6j+5omq+wlvwX68LG+EjcRdWQ1f1Tok8QJEfrtO7sXSrkAK0+4Zmo076wg4K2 rOOkeYyMMgbieOu7uN8kRuGvKcVFZNZaAVz37LSVVrZzUl6kFYcdAk5yGCoXWeWyKWaZHx lKmLr7vBgFP3+xLzYzaZjWaYpmJzQjdlloKbyPgI7zSDdIob31oD2ZFxptbmqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645413671; a=rsa-sha256; cv=none; b=uXFVs0pqKO8grms0iwcSl3r6Rwb6aGHfoP254Vb5JGz/Z7S6N9JLBm9wqars2jJt/VKwcf QsBPC087TItdxEHBe+YmkWbftTmqWy63QAa2FRYJPPa5E0RSslSlPGXcr8Ch8ZtfVyqf2B mQiX2SVlFa5Sb5hA4aY5dhIxRN4FD9kWLx8se4U8es3llibR1lmfkdtOkXGlLLfOgfCwbn kpbT7zE7m81cW1t8bZY/3ccGj4imWsEztLpkmk9ctWAMM69jKu7QT5UHYDDZlFbr3LU1tG I8AarCTdOjB4ox0BICnE3HMtEb2DFHYPO2yUitBhq7ofHbtHQnJRQqTiFNwN8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261553 --- Comment #1 from Ed Maste --- See VTB_MARK_WORD in sys/dev/vt/vt_buf.c This (untested) patch may fix it: diff --git a/sys/dev/vt/vt_buf.c b/sys/dev/vt/vt_buf.c index 9c9417d6eca4..6aae6054d6c5 100644 --- a/sys/dev/vt/vt_buf.c +++ b/sys/dev/vt/vt_buf.c @@ -814,6 +814,8 @@ vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row) if (TCHAR_CHARACTER(r[i]) =3D=3D ' ') { vb->vb_mark_start.tp_col =3D i + 1; break; + } else if (i =3D=3D 0) { + vb->vb_mark_start.tp_col =3D i; } } for (i =3D col; i < vb->vb_scr_size.tp_col; i ++) { (Note that if the word continued from the previous line we would only highl= ight from the beginning of the line. This would presumably be addressed with more extensive work for PR260963.) --=20 You are receiving this mail because: You are the assignee for the bug.=