Col-E / Recaf

The modern Java bytecode editor
https://recaf.coley.software
MIT License
6.06k stars 467 forks source link

Field Value Inserting (Recaf 4x) #832

Closed 3000IQPlay closed 3 months ago

3000IQPlay commented 3 months ago

Describe the bug

So whenever you try and insert brackets first "{}" and then go backwards in between the brackets using arrow keys and you type something, it will be typed backwards.

To Reproduce

Steps to reproduce the behavior:

  1. Open any Jar that has a class with a field to which you can assign value.
  2. First type "{}".
  3. After go backwards between the brackets (I used arrow keys to get between the brackets).
  4. Type in anything.
  5. See error.

Video

https://youtu.be/y2T-ssM9pMg

Col-E commented 3 months ago

Seems like an odd interaction between the improper handling of an invalid AST and the UI thread. Adding a null check seems to have resolved the issue.