From ea9d9365d9437c02e2a50a4f671334fca40119b4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 8 Jun 2020 15:19:54 -0500 Subject: Remove unneeded variables --- bollux | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bollux b/bollux index 96a372f..76f4def 100755 --- a/bollux +++ b/bollux @@ -728,7 +728,7 @@ typeset_gemini() { gemini_link() { local re="^(=>)[[:blank:]]*([^[:blank:]]+)[[:blank:]]*(.*)" - local s t a l # sigil, text, annotation(url), line + local s t a # sigil, text, annotation(url) local ln="$3" if ! ${2-false} && [[ "$1" =~ $re ]]; then s="${BASH_REMATCH[1]}" @@ -745,7 +745,7 @@ gemini_link() { -l "$((${#ln} + 3))" -m "${T_MARGIN}" \ "$WIDTH" "$(trim_string "$t")" fold_line -B " \e[${C_LINK_URL}m" -A "${C_RESET}" \ - -l "$((${#ln} + 3 + ${#t}))" -m "${T_MARGIN}" \ + -l "$((${#ln} + 3 + ${#t}))" -m "$((T_MARGIN + ${#ln} + 2))" \ "$WIDTH" "$a" else gemini_pre "$1" @@ -754,7 +754,7 @@ gemini_link() { gemini_header() { local re="^(#+)[[:blank:]]*(.*)" - local s t a l # sigil, text, annotation(lvl), line + local s t a # sigil, text, annotation(lvl) if ! ${2-false} && [[ "$1" =~ $re ]]; then s="${BASH_REMATCH[1]}" a="${#BASH_REMATCH[1]}" @@ -772,7 +772,7 @@ gemini_header() { gemini_list() { local re="^(\*)[[:blank:]]*(.*)" - local s t a l # sigil, text, annotation(n/a), line + local s t # sigil, text if ! ${2-false} && [[ "$1" =~ $re ]]; then s="${BASH_REMATCH[1]}" t="${BASH_REMATCH[2]}" @@ -787,7 +787,7 @@ gemini_list() { gemini_quote() { local re="^(>)[[:blank:]]*(.*)" - local s t a l + local s t # sigil, text if ! ${2-false} && [[ "$1" =~ $re ]]; then s="${BASH_REMATCH[1]}" t="${BASH_REMATCH[2]}" -- cgit 1.4.1-21-gabe81