From a20d69e7f0f6c3872e1b43ad036befcf4eb27f86 Mon Sep 17 00:00:00 2001 From: "Maurits van Riezen (mousetail)" Date: Sat, 13 Apr 2024 07:49:23 +0200 Subject: [PATCH] use proper number of vertical lines --- src/scripts/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/main.ts b/src/scripts/main.ts index 3e78b9c..08e1fae 100644 --- a/src/scripts/main.ts +++ b/src/scripts/main.ts @@ -217,7 +217,7 @@ function reset() { let text_size = Math.max( Math.min( 0.8 * size.width / longest_line, - 0.8 * size.height / 4, + 0.8 * size.height / code_textarea.value.split('\n').length, 80 ), 12