File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ protected internal override bool OnMouseEvent (MouseEvent me)
349
349
350
350
if ( me . Flags == MouseFlags . WheeledDown )
351
351
{
352
- DisplayStart = Math . Min ( DisplayStart + BytesPerLine , _source . Length ) ;
352
+ DisplayStart = Math . Min ( DisplayStart + BytesPerLine , GetEditedSize ( ) ) ;
353
353
354
354
return true ;
355
355
}
@@ -392,11 +392,11 @@ protected internal override bool OnMouseEvent (MouseEvent me)
392
392
393
393
if ( clickIsOnLeftSide )
394
394
{
395
- Address = Math . Min ( lineStart + me . Position . X - blocksRightOffset , _source . Length - 1 ) ;
395
+ Address = Math . Min ( lineStart + me . Position . X - blocksRightOffset , GetEditedSize ( ) ) ;
396
396
}
397
397
else
398
398
{
399
- Address = Math . Min ( lineStart + item , _source . Length - 1 ) ;
399
+ Address = Math . Min ( lineStart + item , GetEditedSize ( ) ) ;
400
400
}
401
401
402
402
if ( me . Flags == MouseFlags . Button1DoubleClicked )
You can’t perform that action at this time.
0 commit comments