[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate/part
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2003-07-31 19:18:58
[Download RAW message or body]
CVS commit by cullmann:
perhaps better wrap behaviour
M +6 -15 katedocument.cpp 1.558
--- kdelibs/kate/part/katedocument.cpp #1.557:1.558
@@ -1012,5 +1012,4 @@ bool KateDocument::wrapText (uint startL
{
const QChar *text = l->text();
- const QString aSpace = QString(" ");
uint eolPosition = l->length()-1;
uint searchStart = col;
@@ -1023,5 +1022,5 @@ bool KateDocument::wrapText (uint startL
// We are not interested in breaking at the first char
// of the line (if it is a space), but we are at the second
- for (z=searchStart; z>0; z--)
+ for (z=searchStart; z > 0; z--)
if (text[z].isSpace()) break;
@@ -1031,12 +1030,4 @@ bool KateDocument::wrapText (uint startL
//We found a space in which to wrap so break just after it
z++; // (anders: avoid the space at the beginning of the line)
-
- // If the last character of the line is not a space, but we
- // are going to break on a previous space, then we assume that the
- // line is broken into words and we need to add a space so that when the
- // back end of the line is inserted into the next line there is
- // a word boundary.
- if (!text[eolPosition].isSpace())
- editInsertText (line, eolPosition+1, aSpace);
}
else
@@ -1044,5 +1035,5 @@ bool KateDocument::wrapText (uint startL
//There was no space to break at so break at full line
//and don't try and add any white space for the break
- z= col;
+ z = col;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic