FIND does not work properly due to 5311dc0

This commit is contained in:
2017-03-14 11:32:35 +08:00
parent 7624d2b2fb
commit c9c5ff25af
3 changed files with 62 additions and 10 deletions
+8 -4
View File
@@ -134,14 +134,18 @@
if( jumpY )
{
this.moveY( jumpY );
// Because moveTo is a direct jump function
// We'll auto reveal the target line here
if( this.feeder.moreAt == this.Y ) this.moveY( 1 );
}
pline = this.getLine();
// Because moveTo is a direct jump function
// We'll have to auto reveal the target line here
if( pline.lineNum != expLineNum )
{
this.moveY( expLineNum - pline.lineNum );
pline = this.getLine();
}
var jumpX = aPos < lineStart ? lineStart - aPos : aPos - lineStart;
var kX = jumpX - pline.content.length;