You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix selection bug in handleMoveLines on macOS by using invokeLater()
Previously, moving lines down on macOS caused incorrect selection, moving
the cursor to the end of the enclosing braces instead of properly selecting the moved line. This issue did not occur on Windows.
The fix ensures that selection updates happen inside Swing's event
dispatch thread by wrapping the selection logic in SwingUtilities.invokeLater().
This guarantees proper selection behavior across all platforms.
Additionally, updated the JavaDoc for the method to reflect the fix and clarify
the behavior of the selection update.
Tested on Windows and macOS.
0 commit comments