Open trogne opened 6 years ago
Hi, what language are you using? I am not able to reproduce this in JavaScript:
if () {
.}
.
if () {
}
4. Place the cursor between the parentheses and type `{`.
5. I do not observe any complement `}` being inserted, even after pressing enter.
Javascript. Me :
if({){
}
}
Instead of :
if({}){
}
Do you have this check in preferences, smart editing ? : "enable soft characters inside line".
Mine was checked, I unchecked it and I no more have the problem. I guess that's why there's this option. Maybe not a bug...
Thanks for pointing out that preference. If I check that preference, I can reproduce your described issue. I would qualify it as a bug. Thanks!
Yes, after thinking, it IS a bug. I'd prefer to keep the "enable soft characters inside line" active.
Short Summary
Wrong autocomplete for curly braces.
Steps to Reproduce
Enter an open curly brace inside the parentheses :
Expected results
Actual results
The auto-added closing curly brace is wrong :
Platform Information
Komodo IDE Komodo Version : 11.0.2 *Operating System (and version)? Windows 10.