[Bug 261553] vt: double click does not mark whole word if word starts at beginning of line

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 25 Feb 2022 16:23:41 UTC

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:


commit f6a7ce86fc2d2d13f169ff7b5f147858c445ec67
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-02-21 04:09:36 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-02-25 16:22:27 +0000

    vt: fix double-click word selection for first/last word on line

    Previously when double-clicking on the first word on a line we would
    select from the cursor position to the end of the word, not from the
    beginning of the line.  Similarly, when double-clicking on the last word
    on a line we would select from the beginning of the word to the cursor
    position rather than the end of the line.

    This is because we searched backward or forward for a space character to
    mark the beginning or end of a word.  Now, use the beginning or end of
    the line if we do not find a space.

    PR:             261553
    Sponsored by:   The FreeBSD Foundation

    (cherry picked from commit 692bb3f0291b21337eb9a778f71a5b97a47e4c11)
    (cherry picked from commit 521dbfd6b1085511769c419d44f11842e92067f5)

 sys/dev/vt/vt_buf.c | 7 +++++++
 1 file changed, 7 insertions(+)

You are receiving this mail because:
You are the assignee for the bug.