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.