From 87aef98bc43db028a5f00575cec880b87cd87e2c Mon Sep 17 00:00:00 2001 From: Sunny Chung Date: Thu, 14 Nov 2024 16:36:22 +0800 Subject: [PATCH] fix line numbers display was gone --- .../application/multiplatform/hellohttp/ux/CodeEditorView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/CodeEditorView.kt b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/CodeEditorView.kt index e1836d8a..36631387 100644 --- a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/CodeEditorView.kt +++ b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/CodeEditorView.kt @@ -713,7 +713,7 @@ fun BigTextLineNumbersView( val collapsedLinesState = CollapsedLinesState(collapsableLines = collapsableLines, collapsedLines = collapsedLines) // Note that layoutResult.text != bigText - val layoutText = layoutResult?.text as? BigTextTransformerImpl + val layoutText = layoutResult?.text as? BigTextTransformed var prevHasLayouted by remember { mutableStateOf(false) } prevHasLayouted = layoutText?.hasLayouted ?: false