Skip to content

Commit

Permalink
Fix multisearch truncation (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored Feb 21, 2024
1 parent ca6a982 commit 0ae2de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Themes/Default/MultiSearchPromptRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function renderOptions(MultiSearchPrompt $prompt): string

return $this->scrollbar(
collect($prompt->visible())
->map(fn ($label) => $this->truncate($label, $prompt->terminal()->cols() - 10))
->map(fn ($label) => $this->truncate($label, $prompt->terminal()->cols() - 12))
->map(function ($label, $key) use ($prompt) {
$index = array_search($key, array_keys($prompt->matches()));
$active = $index === $prompt->highlighted;
Expand Down

0 comments on commit 0ae2de8

Please sign in to comment.