fix segfault found by milian, wrong range deleted
fix segfault found by milian, wrong range deleted

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

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