Skip to content

Commit

Permalink
Merge pull request #61 from Olegas/master
Browse files Browse the repository at this point in the history
If prompt.message is disabled, don't show extra delimiter at the beginning of the line
  • Loading branch information
gangstead committed Feb 4, 2016
2 parents e96b590 + 6b91caf commit f49cae6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/prompt.js
Expand Up @@ -417,8 +417,11 @@ prompt.getInput = function (prop, callback) {
defaultLine = schema.default;
name = prop.description || schema.description || propName;
raw = prompt.colors
? [prompt.message, delim + name.grey, delim.grey]
: [prompt.message, delim + name, delim];
? [name.grey, delim.grey]
: [name, delim];

if (prompt.message)
raw.unshift(prompt.message, delim);

prop = {
schema: schema,
Expand Down

0 comments on commit f49cae6

Please sign in to comment.