From 9b58fe161e6f8184ca373b871dce37300b63ca4a Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 14 Aug 2022 20:27:47 +0200 Subject: [PATCH] fix, scrollCentered inverted --- src/u_synmemo.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;