Copy paste Javascript code add a mismatching braces at the end
Affected version
- Nightly flatpak: Can't test it
- Other: 43.7
Steps to reproduce
- write some code on a .js file: es
if(condition){
var a_variable="hello world";
}
2.make sure the preferences -> Programming Languages -> Javascript -> insert matching Brace is on
3.copy code and paste somewhere else on the file
4.a mismatching brace appear at the end of the copied code, can be a ) , ] or a }, depending on the code pasted
if(condition){
var a_variable="hello world";
})
Current behavior
The added brace break the code
Expected behavior
Paste only the copied code
Additional information
generally "insert matching Brace" option doesn't work like in past versions: sometime mismanage or overwrite existing braces when adding inner ones
Edited by @Fanelia82