<table><tr><td style="">cactus created this revision.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />cactus requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D20083">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, only one level of autobrace is working.<br />
If the user type (()), the result is (())).</p>
<p>This patch remember multiple levels of autobrace.<br />
With this, if the user type (()), the result is (()) as expected.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>In kate with autobrace enabled:</p>
<div class="remarkup-table-wrap"><table style="border-collapse: separate;
border-spacing: 1px;
background: #d3d3d3;
margin: 12px 0;">
<tr><td style="background: #ffffff;
padding: 3px 6px;">is for the cursor position.</td></tr>
<tr></tr>
</table></div>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter ((</li>
</ul>
<p>The result is ((|))</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter (())</li>
</ul>
<p>The result is (())|</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter (( then backspace</li>
</ul>
<p>The result is (|)</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter (( then backspace twice</li>
</ul>
<p>The result is |</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter ([])</li>
</ul>
<p>The result is ([])|</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter {{</li>
</ul>
<p>The result is {{|}}</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Enter {{}} then left arrow twice, then backspace</li>
</ul>
<p>The result is {|}}</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>MultipleLevelAutobrace (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20083">https://phabricator.kde.org/D20083</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/document/katedocument.cpp<br />
src/document/katedocument.h</div></div></div><br /><div><strong>To: </strong>cactus<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>