We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52317d7 commit 4044c03Copy full SHA for 4044c03
packages/prompts/src/index.ts
@@ -8,7 +8,7 @@ import {
8
SelectKeyPrompt,
9
SelectPrompt,
10
State,
11
- TextPrompt
+ TextPrompt,
12
} from '@clack/core';
13
import { isCI } from 'ci-info';
14
import isUnicodeSupported from 'is-unicode-supported';
@@ -675,7 +675,7 @@ export const spinner = () => {
675
};
676
677
const clearPrevMessage = () => {
678
- if (!_prevMessage) return;
+ if (_prevMessage === undefined) return;
679
if (isCI) process.stdout.write('\n');
680
const prevLines = _prevMessage.split('\n');
681
process.stdout.write(cursor.move(-999, prevLines.length - 1));
0 commit comments