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",