Version: 4.3.2 (using KDE 4.3.2) OS: Linux Installed from: Ubuntu Packages Reproduce: -enable "auto-brackets" -open new document -type "test()" > cursor is now between the brackets -type at position of cursor: test2() > results in "test(test2()", where the last bracket is missing. The error also occurs in Kile.
This is due to bug #101213. In my opinion we should revert the patch in #101213, which will automatically resolv this. This logic is dependent on the language you type, so It should rather be in the indenter anyway. Is reverting + closing this ok, other kate devs?
Seems youre right. Didn't find it cause auto-bracket gave no results in search.
This is fixed now by reverting the change in bug #101213 for KDE 4.4. The relevant commit: SVN commit 1058975 by dhaumann: revert non-deterministic insertion of brackets - always insert ')' for '(', same for {[" - backspace only deletes one character On the long run we need to find a different solution, depending on the current filtype. Ideally, this needs to be scripted as well...