aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 0b1a7fb..3a8de1b 100755
--- a/gist
+++ b/gist
@@ -302,7 +302,7 @@ _show_list() {
302 description=$(sed -E -e 's/^\[(.+)\]/\\e[33m[\1]\\e[0m/' <<<"$description" | sed "s/ $hashtags$//") 302 description=$(sed -E -e 's/^\[(.+)\]/\\e[33m[\1]\\e[0m/' <<<"$description" | sed "s/ $hashtags$//")
303 [[ $tag == 'true' ]] && { url="$hashtags"; local width=45; align=' '; extra=''; } 303 [[ $tag == 'true' ]] && { url="$hashtags"; local width=45; align=' '; extra=''; }
304 304
305 raw_output="$(printf "% 3s" "$index") $(printf "%${align:--}${width:-56}s" "$url") $extra $description" 305 raw_output="$(printf "%-3s" "$index") $(printf "%${align:--}${width:-56}s" "$url") $extra $description"
306 [[ -n $pin ]] && raw_output="$(_color_pinned_tags "$raw_output")" 306 [[ -n $pin ]] && raw_output="$(_color_pinned_tags "$raw_output")"
307 decorator=$(( $(grep -o '\\e\[0m' <<<"$raw_output" | wc -l) *9 )) 307 decorator=$(( $(grep -o '\\e\[0m' <<<"$raw_output" | wc -l) *9 ))
308 echo -e "$raw_output" | cut -c -$(( $(tput cols) +decorator )) 308 echo -e "$raw_output" | cut -c -$(( $(tput cols) +decorator ))