From a90f344477d86a31a1c769008381022fdaa10896 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 31 Mar 2020 18:18:26 -0400 Subject: [PATCH] scrollbar whackiness better --- terminalemulator.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminalemulator.d b/terminalemulator.d index ab2acc1..6130a15 100644 --- a/terminalemulator.d +++ b/terminalemulator.d @@ -1234,7 +1234,7 @@ class TerminalEmulator { private int scrollbackWidth_; int scrollbackWidth() { return screenWidth; - //return scrollbackWidth_; // FIME + //return scrollbackWidth_; // FIXME } /* virtual */ void notifyScrollbackAdded() {} @@ -1310,7 +1310,7 @@ class TerminalEmulator { else { cls(); showScrollbackOnScreen(alternateScreen, currentScrollback, scrollbackReflow, currentScrollbackX); - notifyScrollbarPosition(currentScrollbackX, max - currentScrollback); + notifyScrollbarPosition(currentScrollbackX, scrollbackLength - currentScrollback - screenHeight); } }