YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

Code Editor 2: Double-click-and-drag can give incorrect selections when dragging across multiple lines #6760

Closed KormexGit closed 3 weeks ago

KormexGit commented 1 month ago

Description

If you double-click drag, it's supposed to snap the selection to whole words. However, if you drag to lines of code that are longer than the original one you selected, the words on longer line will only get partially selected. The selection will also go haywire if you drag to the very start of the original word you selected.

https://github.com/user-attachments/assets/6146e8d0-45f6-427f-b8e1-de50e9a7765b

Steps To Reproduce

Double-click drag across some code with varying line/word lengths.

Which version of GameMaker are you reporting this issue for?

IDE v2024.800.0.593 Runtime v2024.800.0.617

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

0c861fbb-93df-4aa1-bb59-d2a1455e12af

zreedy commented 1 month ago

Fixed