Fix calc preview

This commit is contained in:
Konstantin Nazarov 2021-10-10 22:31:03 +01:00
parent 6424011899
commit 9aa4217f7a
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

2
q-calc
View file

@ -12,7 +12,7 @@ if [[ -z "$@" ]]; then
echo "^= .*$" echo "^= .*$"
elif [[ "$1" == "--hint" ]]; then elif [[ "$1" == "--hint" ]]; then
shift shift
echo "= " echo "- = "
elif [[ "$1" == "--complete" ]]; then elif [[ "$1" == "--complete" ]]; then
shift shift
EXPR="$(echo "$@" | cut -d ' ' -f2-)" EXPR="$(echo "$@" | cut -d ' ' -f2-)"