Fix off-by-one error (#39284).
Fix off-by-one error (#39284).

--- kateview.cpp        2002/03/13 22:48:33     1.120
+++ kateview.cpp        2002/03/22 20:54:04
@@ -1733,7 +1733,7 @@ void KateView::setCursorPositionInternal

   int z;
   int x = 0;
-  for (z = 0; z < (int)line_str.length() && z <= col; z++) {
+  for (z = 0; z < (int)line_str.length() && z < col; z++) {
     if (line_str[z] == QChar('\t')) x += tabwidth - (x % tabwidth); else x++;
   }

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

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