<table><tr><td style="">eudoxos added a comment.
</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/D27285">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>No offense meant, but even with the screenshots I still have no idea what this is about :)</p></blockquote>

<p>Good point, I somehow missed to explain the rationale for the change. :) If you are familiar with vim, this would be the <tt style="background: #ebebeb; font-size: 13px;">breakindent</tt> and <tt style="background: #ebebeb; font-size: 13px;">breakindentopt</tt>  settings (that was my patch from 2007 which did not make it into vim until a few years back).</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Can you add a before/after screenshot so we can see the visual difference?</p></blockquote>

<p>I will use this example from <a href="https://en.cppreference.com/w/cpp/algorithm/sort" class="remarkup-link" target="_blank" rel="noreferrer">std::sort documentation</a> which is not the most convoluted code (those changes are the most useful for deeply nested code).</p>

<p>This is the original rendering (with narrow window to make the point) and <a href="https://phabricator.kde.org/D27238" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D27238</a> applied (breaking line anywhere rather than at whitespace-only):<br />
<a href="https://phabricator.kde.org/F8100695" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F8100695: image.png</a><br />
Note how indentation blocks, manifest from empty space left, and also vertical indentation lines, are visually damaged by the dynamic wrap fill (I call this left fill, it is left of the indentation level). Dynamic wrap is something related to presentation only, not to overall code logic (indentation), and is line-local; so the option to enable/disable this fill is to make it possible to remove this globally-prominent visual cue about something very much local. This is without the left fill (note how indentation lines now also extend vertically):<br />
<a href="https://phabricator.kde.org/F8100700" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F8100700: image.png</a><br />
Now, the line being wrapped does have some importance and it should be shown somewhere. It is shown already by the arrow in the left margin, but that is way too far from the break, even left from folding markers (global logic) (I understand the wrap markers are there probably from the age when dynamic wrapping did not respect indentation and it was a sin to write code beyond col 80 ;) ).</p>

<p>So the "right fill" is <strong>right</strong> of the indentation level on subsequent visual lines and gives visual cue about the line being wrapped; like this (2 characters wide, that is adjustable):<br />
<a href="https://phabricator.kde.org/F8100703" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F8100703: image.png</a><br />
Of course, there are many options how to mark the break where it occurs, this one was just the easiest one. Onec can clutter configuration more and think of options like moving the arrow in the left margin to the line beginning, like this (this is just GIMP, not in the code)<br />
<a href="https://phabricator.kde.org/F8100706" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F8100706: image.png</a><br />
but I think it is better to start with something relatively simple.</p>

<p>It is possible to enable both left and right fill (not sure why anybody would want that, but I was not sure even for the original (left) fill):<br />
<a href="https://phabricator.kde.org/F8100716" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F8100716: image.png</a></p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Also, the "fill left" and "fill right" wording is new, and not intuitively understandable for me.</p></blockquote>

<p>That is a new "terminology" I am free to adjust. Left is simply left of indentation level, right is on the right.</p>

<p>Hope this explains somewhat.</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/D27285">https://phabricator.kde.org/D27285</a></div></div><br /><div><strong>To: </strong>eudoxos, VDG<br /><strong>Cc: </strong>dhaumann, kwrite-devel, kde-frameworks-devel, rrosch, LeGast00n, cblack, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars<br /></div>