From 1cf33c9dd7293834f2e3069a3b022b65f5ac2679 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Sun, 31 Aug 2025 01:47:11 +0100 Subject: [PATCH] add todo note that text-window.sml needs to be changed so that it acts as if the screen is 80 chars wide if the screen can fit more than 80 chars, the same way text-builder.sml was changed in previous commits --- fcore/text-window.sml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fcore/text-window.sml b/fcore/text-window.sml index ec5a2bb..ca565fc 100644 --- a/fcore/text-window.sml +++ b/fcore/text-window.sml @@ -2,6 +2,10 @@ structure TextWindow = struct open TextConstants + (* todo: at some point, make sure the functions in the TextWindow structure + * all act as if the screen is centered + * if the window width is more than 80 chars long *) + fun getStartLineBefore (sIdx, shd, lineNum, absIdx, cursorIdx, stl) = if sIdx < 0 then case stl of