Skip to content

Commit 32c0952

Browse files
committed
use better code
1 parent 62790ea commit 32c0952

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/prompts/src/autocomplete.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,7 @@ export const autocompleteMultiselect = <Value>(opts: AutocompleteMultiSelectOpti
304304

305305
// Calculate header and footer line counts for rowPadding
306306
const headerLines = [
307-
...title.split('\n').slice(0, -1),
308-
barColor(S_BAR),
307+
...`${title}${barColor(S_BAR)}`.split('\n'),
309308
`${barColor(S_BAR)} ${color.dim('Search:')} ${searchText}${matches}`,
310309
...noResults,
311310
...errorMessage,

0 commit comments

Comments
 (0)