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 8ff7134 commit b4f2ba2Copy full SHA for b4f2ba2
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';
@@ -673,7 +673,7 @@ export const spinner = () => {
673
};
674
675
const clearPrevMessage = () => {
676
- if (!_prevMessage) return;
+ if (_prevMessage === undefined) return;
677
if (isCI) process.stdout.write('\n');
678
const prevLines = _prevMessage.split('\n');
679
process.stdout.write(cursor.move(-999, prevLines.length - 1));
0 commit comments