Description
Navigating into a very long (70k) selected string using the mouse causes the editor to freeze for a long time.
This happens also when word-wrap is not enabled and is hence not an exact duplicate of issue 41
Steps to Reproduce
Specific steps to reproduce the behavior:
Start the demo app
Copy the contents of the attached file sakila-insert.txt and paste it into the editor area of the demo app
Double-click to select the long hex string on line 6 : 'X'89504e470d0a1a0a0000 ....
Use the mouse to click somewhere near the end of the string
Expected behavior
The string is deselected and the cursor is immediately placed where I clicked.
Actual behavior
The editor freezes for several seconds (approx 15 secs on a Mac M1 Pro) before eventually placing the cursor in the expected location.
Description Navigating into a very long (70k) selected string using the mouse causes the editor to freeze for a long time. This happens also when word-wrap is not enabled and is hence not an exact duplicate of issue 41
Steps to Reproduce Specific steps to reproduce the behavior:
'X'89504e470d0a1a0a0000
....Expected behavior The string is deselected and the cursor is immediately placed where I clicked.
Actual behavior The editor freezes for several seconds (approx 15 secs on a Mac M1 Pro) before eventually placing the cursor in the expected location.
Screenshots
Java version Java 8 (Azul Zulu 1.8_322) Java 11 (Eclipse Temurin 11.0.14)
Additional context The problem seems to be in the method
TokenImpl.getListOffset()
(the loop at line 476 - 492)