cactus added a comment.
Sorry, I am not sure to understand what do you want. You would like the previous behavior with a multi-depth stack of range? I don't understand what disturb you in my solution. You can close a missing bracket. If you have (| and you press ')', you obtain ()|. But if you have many parenthesis with missing closed one, this solution considers the missing is the much external. So with (((|)), and pressing many time on the closed parenthesis give you ((()|) ((())| ((()))| But I think this situation is very occasional because every brace is automatically closed. REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D4234 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: cactus, #ktexteditor Cc: brauch, cullmann, kwrite-devel, #frameworks