SynEdit: switching OFF ScrollPastEndofFILE would not reset top-line, if editor was scrolled past eof

git-svn-id: trunk@20812 -
This commit is contained in:
martin 2009-07-08 23:44:43 +00:00
parent 418b243b48
commit 56ba182492

View File

@ -6663,8 +6663,10 @@ begin
FCaret.KeepCaretX := (eoKeepCaretX in fOptions);
if not (eoScrollPastEol in Options) then
LeftChar := LeftChar;
if (eoScrollPastEol in Options) or (eoScrollPastEof in Options) then
if (eoScrollPastEol in Options) or (eoScrollPastEof in Options) then begin
UpdateScrollBars;
TopLine := TopLine;
end;
// (un)register HWND as drop target
if (eoDropFiles in ChangedOptions) and not (csDesigning in ComponentState) and HandleAllocated then
; // ToDo DragAcceptFiles