Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.54k stars 174 forks source link

Right Autoclosing Brackets are forgotten when Brackets are nested #5746

Closed lucvtzel closed 1 month ago

lucvtzel commented 1 month ago

Hello,

I think i have found a bug (on CudaText 1.218.2.0, linux-x86_64-gtk2, fpc 3.2.2): Shouldn't we expect more closing brackets when they are nested ? :smiley:

WHAT IS TYPED           EXPECTED OUTPUT         ACTUALLY OUTPUT                 
print(                  print(|)                print(|)
print(func(             print(func(|))          print(func(|)
print(func(func2(       print(func(func2(|)))   print(func(func2(|)

Editor_NextCharAllowed_AutoCloseBracket seems to be the one responsible for this missbehavior

Alexey-T commented 1 month ago

Confirmed, yes it is a bug. To fix.

lucvtzel commented 1 month ago

Great, I found a bug! :dizzy_face: