Skip to content

Commit

Permalink
Merge pull request #45 from rnwgnr/linkfix
Browse files Browse the repository at this point in the history
fix small glitches
  • Loading branch information
blmayer authored Aug 15, 2023
2 parents 5bc99d1 + 5d91ace commit 3f74483
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions astro
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ sty_quote='\\033[2;3m '
sty_linkb='\\033[35m'
sty_linkt=' => \\033[36;3m '
sty_listb='\\033[35;1m •'
sty_listt='\\033[0m'
sty_listt='\\033[0m '
EOF
fi

Expand Down Expand Up @@ -204,7 +204,7 @@ typesetgmi() {

sty="$sty_linkb${linkcount}$sty_linkt"
;;
'* '*) sty="$sty_listt" && line="$sty_listb$sty_listt${line#* }";;
'* '*) sty="$sty_listb$sty_listt" && line="${line#* }";;
*) sty="";;
esac
echo "$line" | fold -w "$width" -s | {
Expand Down Expand Up @@ -425,7 +425,7 @@ EOF
printf "Enter link number: "
read -r i <&1
debug "selected $i"
url="$(sed "${i}q;d" "$linksfile" | cut -d' ' -f1)"
url="$(sed "${i}q;d" "$linksfile" | cut -f1 | cut -d' ' -f1)"
oldhost="$2"; oldpath="$4"
;;
52)
Expand Down Expand Up @@ -453,7 +453,7 @@ EOF
mv "$cachedir/bookmarks" "$bookmarkfile"
;;
57)
newpath=$(echo "/$4" | tr -d '/' | rev | cut -d'/' -f2- | rev)
newpath=$(echo "/${4%/}" | rev | cut -d'/' -f2- | rev)
url="$1://$2:$3$newpath"
;;
esac
Expand Down

0 comments on commit 3f74483

Please sign in to comment.