mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 14:29:29 +02:00
SynEdit: fixed display/repaint issue, with text files (no highlighter used)
git-svn-id: trunk@20664 -
This commit is contained in:
parent
b5da1c1954
commit
e3b36fe253
@ -4390,6 +4390,7 @@ function TCustomSynEdit.ScanFrom(var Index: integer; AtLeastTilIndex: integer):
|
||||
begin
|
||||
{$IFDEF SYNFOLDDEBUG}debugln(['FOLD-- ScanFrom Index=', Index, ' AtLeats=', AtLeastTilIndex]);{$ENDIF}
|
||||
if Index < 0 then Index := 0;
|
||||
Result := Max(Index, AtLeastTilIndex);
|
||||
if not assigned(fHighlighter) or (Index > FTheLinesView.Count - 1) then begin
|
||||
FFoldedLinesView.FixFoldingAtTextIndex(Index);
|
||||
fMarkupManager.TextChangedScreen(Max(RowToScreenRow(Index+1), 0), LinesInWindow+1);
|
||||
|
Loading…
Reference in New Issue
Block a user