<table><tr><td style="">cullmann requested changes to this revision.<br />cullmann added a comment.<br />This revision now requires changes to proceed.
</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/D16838">View Revision</a></tr></table><br /><div><div><p>Hmm, in principle that is only a hack, but I can understand why it helps :=)</p>

<p>Have you tried to use a</p>

<p>KTextEditor::Document::EditingTransaction transaction(document);</p>

<p>approach? Should have a similar effect, IMHO.</p>

<p>See</p>

<p><a href="https://api.kde.org/frameworks/ktexteditor/html/classKTextEditor_1_1Document_1_1EditingTransaction.html" class="remarkup-link" target="_blank" rel="noreferrer">https://api.kde.org/frameworks/ktexteditor/html/classKTextEditor_1_1Document_1_1EditingTransaction.html</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R40 Kate</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16838">https://phabricator.kde.org/D16838</a></div></div><br /><div><strong>To: </strong>sars, Kate, cullmann<br /><strong>Cc: </strong>cullmann, kwrite-devel, hase, michaelh, ngraham, demsking, sars, dhaumann<br /></div>