fix(tui): generic empty-state for searchable pickers (PR #1201, thanks @vignesh07)

Co-authored-by: Vignesh Natarajan <vigneshnatarajan92@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-19 05:15:51 +00:00
parent dd18765b50
commit c578fca687
3 changed files with 3 additions and 6 deletions

View File

@@ -158,7 +158,7 @@ describe("SearchableSelectList", () => {
list.handleInput("z");
const output = list.render(80);
expect(output.some((line) => line.includes("No matching"))).toBe(true);
expect(output.some((line) => line.includes("No matches"))).toBe(true);
});
it("navigates with arrow keys", () => {

View File

@@ -190,7 +190,7 @@ export class SearchableSelectList implements Component {
// If no items match filter, show message
if (this.filteredItems.length === 0) {
lines.push(this.theme.noMatch(" No matching models"));
lines.push(this.theme.noMatch(" No matches"));
return lines;
}