Version: (using KDE Devel) Installed from: Compiled sources Compiler: GCC 3.4.6 OS: Linux Create a document with more than one line, like this paragraph. Then select from "document" to "paragraph." Now resize the window. The selection will break up on the right side of "line,"
Created attachment 16825 [details] Screenshow of window before resize
Created attachment 16826 [details] Screenshot of window after resize
SVN commit 556297 by kling: If a line is partially selected and is the first in a multi-line selection, we have to fill the right side with the selection color. BUG: 130015 M +7 -0 katerenderer.cpp --- branches/KDE/3.5/kdelibs/kate/part/katerenderer.cpp #556296:556297 @@ -696,6 +696,13 @@ } } + // If this line has a partial selection that's the start of a multi-line selection, + // we have to fill areas on the right side of the text with the selection color. + if (showSelections() && hasSel && !selectionPainted && xStart >= (int)xPos && m_view->lineEndSelected(line, -1)) + { + paint.fillRect(0, 0, xEnd-xStart, fs->fontHeight, config()->selectionColor()); + } + // Determine cursor position (if it is not within the range being drawn) if (showCursor && (cursor->col() >= int(curCol))) {