#5924·ace

(module name): (short issue description)

Author: BozzzoCreated Mar 1, 2026Updated Jul 29, 2026
Labelsp2bug

Describe the bug

Typing same exact complete key sequence for a valid syntax can give different resulting text depending on wether Behaviours are turned on or not. Potentially producing text with syntax error.

Expected Behavior

The expected behaviour when "auto-close" - that is Behaviours - is turned-on is that upon typing the closing character that "auto-close" already inserted it is matched and cursor just moves rather than inserting closing charater again.

This can be observed in lots of other code editors like IntelliJ, Visual Studio..., even Notepad++ does it.

Current Behavior

For Ex: typing the valid syntax sequence: functionname(parameter) Without Behaviours will result in valid: functionname(parameter) But with ACTIVE Behaviours will produce INVALID functionname(parameter))

Same thing for all other sorts auto-close(s)

Reproduction Steps

For Ex: typing the valid syntax sequence: functionname(parameter) Without Behaviours will result in valid: functionname(parameter) But with ACTIVE Behaviours will produce INVALID functionname(parameter))

Same thing for all other sorts auto-close(s)

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

1.43.5 / ...