mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
Fix long search result result width.
This commit is contained in:
parent
2cfa1c5184
commit
4920550c7a
@ -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 New Issue
Block a user