diff --git a/fontpreview b/fontpreview index c4febae..7be6058 100755 --- a/fontpreview +++ b/fontpreview @@ -98,7 +98,7 @@ main(){ while true; do # List out all the fonts which imagemagick is able to find, extract # the font names and then pass them to fzf - font=$(magick -list font | awk -F: '/^[ ]*Font: /{print substr($NF,2)}' | fzf --prompt="$SEARCH_PROMPT") + font=$(magick -list font | awk -F: '/^[ ]*Font: /{print substr($NF,2)}' | sed 's/\\/\\\\/g' | fzf --prompt="$SEARCH_PROMPT") # Exit if nothing is returned by fzf, which also means that the user # has pressed [ESCAPE]