Skip to content

Weird behavior when using mouse to select text to the end of document #2614

@jzniu

Description

@jzniu

When I use the mouse to select text to the end of a document, once it reaches the end, the cursor somehow moves back to somewhere in the middle of the document. I'm not sure if this is related to Qt or texstudio itself. Using Shift+Down to select doesn't have this issue.

Environment

  • TeXstudio: 4.2.1 (having the same issue before this version I believe)
  • Qt: 5.15.2
  • OS: Windows 10
  • TeX distribution: miktex

Expected behavior

The mouse cursor should stay at the end of the document and selection of text just ends there.

Actual behavior

The mouse cursor moves to somewhere in the middle of the document once it reaches the end of the document. It seems that internally some modulo operation is used causing the issue.

How to reproduce

Use the mouse to select text to the end of a document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions