Skip to content

Commit

Permalink
Remove non-spinnable default prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcarpanelli committed Jun 16, 2019
1 parent 2da89d8 commit 38e6637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ class Spinnies {
prefixLength = failPrefix.length + 1;
line = `${chalk.red(failPrefix)} ${chalk[failColor](text)}`;
} else {
line = text;
prefixLength = 0;
line = color ? chalk[color](text) : text;
}
}
linesLength.push(...getLinesLength(text, prefixLength));
Expand Down

0 comments on commit 38e6637

Please sign in to comment.