Skip to content

Commit aefa1ea

Browse files
committed
fix: add missing guide line in autocomplete-multiselect
1 parent 8e2e30a commit aefa1ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/prompts/src/autocomplete.ts

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

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

0 commit comments

Comments
 (0)