From kde-commits Tue Mar 22 19:56:13 2005 From: Christoph Cullmann Date: Tue, 22 Mar 2005 19:56:13 +0000 To: kde-commits Subject: kdelibs/kate/part Message-Id: <20050322195613.2B73D3C3 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111152138229133 CVS commit by cullmann: last one fixed crash, but this should be better to keep sane indent M +2 -2 katedocument.cpp 1.807 --- kdelibs/kate/part/katedocument.cpp #1.806:1.807 @@ -3061,7 +3061,7 @@ void KateDocument::newLine( KateTextCurs int pos = textLine->firstChar(); - // this needs testing, perhaps better length(), not sure of atm + // length should do the job better if (pos < 0) - pos = 0; + pos = textLine->length(); if (c.col() < pos)