forked from Botanical/BotanJS
Used the wrong movement function
This commit is contained in:
parent
4529f4b4a1
commit
3d2f3b889a
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user