<table><tr><td style="">loh.tar created this revision.<br />loh.tar added a reviewer: KTextEditor.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />loh.tar 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/D17949">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Don't wrap entire document when nothing is selected but wrap current line</li>
<li class="remarkup-list-item">Join paragraph before wrap to avoid odd result</li>
</ul>

<p>TODO Update "What this" hint<br />
This patch may conflict with <a href="https://phabricator.kde.org/D17128" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D17128</a>, but because that need anyway some more love<br />
I like to offer this one now, to fetch some feedback.</p>

<p>As always fresh and poor tested. But I think it is a handy improvement and seems<br />
to work nicely. As you know I have often mention not so lovely things about the<br />
wrap feature and there are a couple of bug reports.</p>

<p>This patch address not all aspects but should be a step in the right direction.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>My arbitrary choose test data.</p>

<p>1aaaaa  aaaa aaaa aaaaaaa<br />
2aa aaaaaaa aaaaaa aaaaaaa aaa  aaaa aaaa aaaaaaa aa<br />
3aaaaaaaa aaaaaaa aaaaaaa aaaaaa aaaaaaa aaaaaaaaa aaaaaaaa aaaaaaaa aaaaa aaaaa aaaa aaaa aaaaaaa aa<br />
4aaaaa  aaaa aaaa aaaaaaa aa<br />
5aaa  aaaa aaaa aaaaaaa aa aaaa aaaaaaa aa aaaaaaa</p>

<p>1-----  ---- ---- -------<br />
2-- ------- ------ ------- ---  ---- ---- ------- --<br />
3-------- ------- ------- ------ ------- --------- -------- -------- ----- ----- ---- ---- ------- --<br />
4-----  ---- ---- ------- --<br />
5---  ---- ---- ------- -- ---- ------- -- -------</p>

<p>1xxxxx  xxxx xxxx xxxxxxx<br />
2xx xxxxxxx xxxxxx xxxxxxx xxx  xxxx xxxx xxxxxxx xx<br />
3xxxxxxxx xxxxxxx xxxxxxx xxxxxx xxxxxxx xxxxxxxxx xxxxxxxx xxxxxxxx xxxxx xxxxx xxxx xxxx xxxxxxx xx<br />
4xxxxx  xxxx xxxx xxxxxxx xx<br />
5xxx  xxxx xxxx xxxxxxx xx xxxx xxxxxxx xx xxxxxxx</p>

<p>Before<br />
<a href="https://phabricator.kde.org/F6523470" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6523470: 1546546614.png</a><br />
With Patch<br />
<a href="https://phabricator.kde.org/F6523471" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6523471: 1546546403.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17949">https://phabricator.kde.org/D17949</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/view/kateview.cpp<br />
src/view/kateview.h</div></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, KTextEditor, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>