CVS commit by cullmann: fix dh's crash, not sure this is the right way (TM), after testing backport should follow M +6 -0 katedocument.cpp 1.806 --- kdelibs/kate/part/katedocument.cpp #1.805:1.806 @@ -3060,4 +3060,9 @@ void KateDocument::newLine( KateTextCurs { int pos = textLine->firstChar(); + + // this needs testing, perhaps better length(), not sure of atm + if (pos < 0) + pos = 0; + if (c.col() < pos) c.setCol(pos); // place cursor on first char if before