From 8ca768e0cc8a65eb2e21b1386971bce0611083c5 Mon Sep 17 00:00:00 2001 From: Mickael Date: Sun, 7 Jun 2026 21:28:04 +0700 Subject: [PATCH] resolve #5461 --- lib/pause.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pause.js b/lib/pause.js index 47be63287..8960376ad 100644 --- a/lib/pause.js +++ b/lib/pause.js @@ -105,7 +105,7 @@ async function parseInput(cmd) { recorder.session.start('pause') if (cmd === '') next = true if (!cmd || cmd === 'resume' || cmd === 'exit') { - finish() + if (typeof finish === 'function') finish() recorder.session.restore('pause') rl.close() history.save()