Skip to content

Commit d194252

Browse files
committed
update group-multiselect
1 parent 3b4d03a commit d194252

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/prompts/src/group-multi-select.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const groupMultiselect = <Value>(opts: GroupMultiSelectOptions<Value>) =>
9494
},
9595
render() {
9696
const bar = style.formatBar[this.state](S_BAR);
97-
const _barEnd = style.formatBar[this.state](S_BAR_END);
97+
const barEnd = style.formatBar[this.state](S_BAR_END);
9898

9999
const title = `${color.gray(S_BAR)}\n${style.prefix[this.state]} ${opts.message}\n`;
100100
const value = this.value ?? [];
@@ -119,7 +119,7 @@ export const groupMultiselect = <Value>(opts: GroupMultiSelectOptions<Value>) =>
119119
const footer = this.error
120120
.split('\n')
121121
.map((ln, i) =>
122-
i === 0 ? `${color.yellow(S_BAR_END)} ${color.yellow(ln)}` : ` ${ln}`
122+
i === 0 ? `${barEnd} ${style.formatBar[this.state](ln)}` : ` ${ln}`
123123
)
124124
.join('\n');
125125
return `${title}${bar} ${this.options
@@ -181,7 +181,7 @@ export const groupMultiselect = <Value>(opts: GroupMultiSelectOptions<Value>) =>
181181
})
182182
.join(`\n${bar}`);
183183
const optionsPrefix = optionsText.startsWith('\n') ? '' : ' ';
184-
return `${title}${bar}${optionsPrefix}${optionsText}\n${color.cyan(S_BAR_END)}\n`;
184+
return `${title}${bar}${optionsPrefix}${optionsText}\n${barEnd}\n`;
185185
}
186186
}
187187
},

0 commit comments

Comments
 (0)