<table><tr><td style="">dhaumann created this revision.<br />dhaumann added reviewers: jsalatas, ltoscano, kfunk, cullmann, anthonyfieroni, mwolff.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />dhaumann 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/D14847">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The problem is that QString("").startsWith("") returns false.<br />
Similarly, QString("").endsWith("") also returns false.<br />
However, the code previously was assuming that both cases return true.</p>
<p>This is now fixed, and verified through unit tests.</p>
<p>BUG: 381080</p>
<p>This deprecates patch <a href="https://phabricator.kde.org/D6473" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D6473</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>make && make test</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-replace-newline-empty-lines (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14847">https://phabricator.kde.org/D14847</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/src/searchbar_test.cpp<br />
autotests/src/searchbar_test.h<br />
src/search/kateplaintextsearch.cpp</div></div></div><br /><div><strong>To: </strong>dhaumann, jsalatas, ltoscano, kfunk, cullmann, anthonyfieroni, mwolff<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>