cactus created this revision. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. cactus requested review of this revision.
REVISION SUMMARY Currently, only one level of autobrace is working. If the user type (()), the result is (())). This patch remember multiple levels of autobrace. With this, if the user type (()), the result is (()) as expected. TEST PLAN In kate with autobrace enabled: | is for the cursor position. | | - Enter (( The result is ((|)) - Enter (()) The result is (())| - Enter (( then backspace The result is (|) - Enter (( then backspace twice The result is | - Enter ([]) The result is ([])| - Enter {{ The result is {{|}} - Enter {{}} then left arrow twice, then backspace The result is {|}} REPOSITORY R39 KTextEditor BRANCH MultipleLevelAutobrace (branched from master) REVISION DETAIL https://phabricator.kde.org/D20083 AFFECTED FILES src/document/katedocument.cpp src/document/katedocument.h To: cactus Cc: kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann