Used the wrong movement function

This commit is contained in:
斟酌 鵬兄 2016-04-03 20:19:45 +08:00
parent 4529f4b4a1
commit 3d2f3b889a
1 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@
var f = cur.feeder;
var n = cur.getLine().lineNum;
var p = f.content.indexOf( "\n" );
for( i = 1; p != -1 && i < n; i ++ )
var p = 0;
for( i = 0; p != -1 && i < n; i ++ )
{
p = f.content.indexOf( "\n", p + 1 );
}
@ -68,7 +68,7 @@
if( lowerLimmit <= tX && tX < upperLimit )
{
cur.moveX( tX - lowerLimmit - cX );
cur.moveTo( tX );
}
else beep();
};