From 123bf5100193afda6e6d337fb469a16a80c524c3 Mon Sep 17 00:00:00 2001 From: Emma Date: Wed, 21 May 2025 12:53:39 -0600 Subject: [PATCH] fix: I really am thick --- cli/prompts.ts | 3 ++- deno.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/prompts.ts b/cli/prompts.ts index 2bda21d..37486c3 100644 --- a/cli/prompts.ts +++ b/cli/prompts.ts @@ -44,6 +44,7 @@ export async function cliPrompt( render(); const buf = new Uint8Array(64); // large enough for most pastes + inputLoop: while (true) { const n = await Deno.stdin.read(buf); if (n === null) break; @@ -60,7 +61,7 @@ export async function cliPrompt( } if (byte === 13) { // Enter - break; + break inputLoop; } // Escape sequence? diff --git a/deno.json b/deno.json index 2665da8..6246945 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@bearmetal/pdf-tools", - "version": "1.0.6", + "version": "1.0.7", "license": "GPL 3.0", "tasks": { "dev": "deno run -A --env-file=.env main.ts", -- 2.47.2