various crash fixes for length() and lineLength(), plainLine -> textLine, tunes
various crash fixes for length() and lineLength(), plainLine -> textLine, tunes

svn path=/trunk/kdelibs/kate/; revision=169313

jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,sandsmark/kate,cmacq2/kate,hlamer/kate,hlamer/kate,sandsmark/kate,sandsmark/kate,cmacq2/kate,DickJ/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,DickJ/kate,hlamer/kate,DickJ/kate,DickJ/kate,cmacq2/kate,sandsmark/kate,hlamer/kate