Wish Collapsing a #Region (or Sub) in editor should reposition mouse properly

Widget

Well-Known Member
Licensed User
Longtime User
I notice if I collapse a #Region (or Sub) that is near the bottom of the file, the mouse will stay stationary on the screen. But the topmost viewable line in the editor will now display a much lower line number, and the mouse is no longer positioned over the line that was just collapsed. The editor changes the top viewable line in order to display the last line of code in the editor. Which is fine, but it should reposition the mouse to the line# that the user just clicked on. Either that, or don't reposition the top line of the editor when collapsing a region or sub.

I have uploaded a small project to demonstrate this problem. Just open the project and follow the instructions in the code above the "Sub BigSub". (You don't need to compile it. Just use the editor on the source file.)

TIA
 

Attachments

  • RegionJumpBug.Zip
    6.3 KB · Views: 222
Top