make sure that cursor does not end up past EOL
make sure that cursor does not end up past EOL

svn path=/trunk/KDE/kdelibs/kate/; revision=1043987

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