diff --git a/src/u_synmemo.pas b/src/u_synmemo.pas index 3f6a3be6..3fe247a0 100644 --- a/src/u_synmemo.pas +++ b/src/u_synmemo.pas @@ -2151,7 +2151,7 @@ end; procedure TDexedMemo.scrollCentered(down: boolean); begin centerCursor(); - if down then + if not down then begin ExecuteCommand(ecScrollDown, #0, nil); CaretY := CaretY - 1;