From fa47d74a89ca9cad27a9d61842b21316b3721c25 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 15 May 2010 14:06:38 +0000 Subject: [PATCH] SynEdit: Fixed invalidation issue (intruduced in rev 25320 #8616df2434) git-svn-id: trunk@25421 - --- components/synedit/synedit.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/synedit/synedit.pp b/components/synedit/synedit.pp index a07fd44503..41658f45c8 100644 --- a/components/synedit/synedit.pp +++ b/components/synedit/synedit.pp @@ -365,7 +365,7 @@ type fLastMouseCaret: TPoint; // Char; physical (screen) FLastMousePoint: TPoint; // Pixel FChangedLinesStart: integer; // 1 based, 0 means invalid - FChangedLinesEnd: integer; // 1 based, 0 means invalid + FChangedLinesEnd: integer; // 1 based, 0 means invalid, -1 means rest of screen FBeautifier: TSynCustomBeautifier; FBeautifyStartLineIdx, FBeautifyEndLineIdx: Integer; @@ -4604,7 +4604,7 @@ begin // FChangedLinesStart is also given to Markup.TextChanged; but it is not used there if (FChangedLinesStart<1) or (FChangedLinesStart>AIndex+1) then FChangedLinesStart:=AIndex+1; - FChangedLinesEnd := MaxInt; // Invalidate the rest of lines + FChangedLinesEnd := -1; // Invalidate the rest of lines end else begin ScanRanges; InvalidateLines(AIndex + 1, -1); @@ -4626,7 +4626,7 @@ begin if PaintLock>0 then begin if (FChangedLinesStart<1) or (FChangedLinesStart>AIndex+1) then FChangedLinesStart:=AIndex+1; - if (FChangedLinesEnd<1) or (FChangedLinesEnd= 0) and (FChangedLinesEnd