From 9208c47622628c0f6db982be62e20d07787c8cd6 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Sat, 13 Sep 2025 05:31:11 +0100 Subject: [PATCH] fix exception caused by resizing in normal mode: we were passing 'buffer' to the TextScroll function previously, but we were meant to be passing 'newBuffer'. We are passing 'newBuffer' in this new commit as we are meant to. --- fcore/normal-mode/normal-finish.sml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcore/normal-mode/normal-finish.sml b/fcore/normal-mode/normal-finish.sml index 38c75c3..cb089e6 100644 --- a/fcore/normal-mode/normal-finish.sml +++ b/fcore/normal-mode/normal-finish.sml @@ -98,7 +98,7 @@ struct val newBuffer = LineGap.goToIdx (cursorIdx, buffer) val visualScrollColumn = TextScroll.getScrollColumn - (buffer, cursorIdx, newWidth, prevScrollColumn) + (newBuffer, cursorIdx, newWidth, prevScrollColumn) val newBuffer = LineGap.goToLine (startLine, newBuffer) val lineIdx = TextBuilderUtils.getLineAbsIdxFromBuffer (startLine, buffer)