D20083: Multiple level of autobrace
Jérémy Girard
noreply at phabricator.kde.org
Wed Mar 27 22:50:24 GMT 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190327/f67d5985/attachment.html>
More information about the KWrite-Devel
mailing list