mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
Fix long search result result width.
This commit is contained in:
parent
9010dbfd97
commit
b5ec600625
1 changed files with 4 additions and 4 deletions
|
@ -180,18 +180,18 @@ function fisher_search -d "Search plugin index"
|
|||
switch "$format"
|
||||
case default
|
||||
set fields $fields '
|
||||
printf("%s '"$color_weak"'%-22s'"$color_normal"' %s\n", legend, $1, normalize($3, len + 24))
|
||||
printf("%s '"$color_weak"'%-22s'"$color_normal"' %s\n", legend, $1, normalize($3, len + 28))
|
||||
} else {
|
||||
printf("'"$legend$color_name"'%-22s'"$color_normal"' %s\n", $1, normalize($3, len + 24))
|
||||
printf("'"$legend$color_name"'%-22s'"$color_normal"' %s\n", $1, normalize($3, len + 28))
|
||||
}
|
||||
'
|
||||
set options $options -v compact=1
|
||||
|
||||
case long
|
||||
set fields $fields '
|
||||
printf("%-40s %s '"$color_weak"'%-22s'"$color_normal"' %s\n", humanize_url($2), legend, $1, normalize($3, len + 66))
|
||||
printf("%-40s %s '"$color_weak"'%-22s'"$color_normal"' %s\n", humanize_url($2), legend, $1, normalize($3, len + 70))
|
||||
} else {
|
||||
printf("'"$color_tag"'%-40s'"$color_normal"' '"$legend$color_name"'%-22s'"$color_normal"' %s\n", humanize_url($2), $1, normalize($3, len + 66))
|
||||
printf("'"$color_tag"'%-40s'"$color_normal"' '"$legend$color_name"'%-22s'"$color_normal"' %s\n", humanize_url($2), $1, normalize($3, len + 70))
|
||||
}
|
||||
'
|
||||
set options $options -v compact=1
|
||||
|
|
Loading…
Reference in a new issue