[Bug 262090] vt newcons ignores the user-selected marking mode when moving mouse/extending mark

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 21 Feb 2022 10:07:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262090

            Bug ID: 262090
           Summary: vt newcons ignores the user-selected marking mode when
                    moving mouse/extending mark
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: sblachmann@gmail.com

Let me explain:
Xorg has three marking modes:
-click+drag = character-wise marking: all characters from mousedown char to
mouseup char
-double-click+drag = word-wise marking: all words from mousedown word to
mouseup word
-triple-click+drag = line-wise marking: all lines from mousedown line to
mouseup line

In vt there seems to be missing a variable/flag which registers the marking
mode being chosen by the user.

When moving the mouse to extend the marked area, this results in mark_start and
mark_end to work incorrectly in word and line mode, effectively nixing the
word/line mark mode and entering the char mark mode.

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