diff options
-rw-r--r-- | basta.sh | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -16,14 +16,13 @@ basta_deferred_intr=${basta_deferred_intr-} basta.query_terminal_lines() { - local -n intovar=$1 + local intovar=$1 local result local curline printf $'\e7\e[999;999H' - basta.get_cur_line curline + basta.get_cur_line $intovar result=$? printf $'\e8' - intovar=$curline return $result } @@ -66,8 +65,7 @@ basta.get_cur_line() read -t 3 -s -d R response < /dev/tty local IFS="[;" set -- $response - intovar=$2 - [[ "$intovar" =~ ^[0-9]+$ ]] + [[ "$2" =~ ^[0-9]+$ ]] && intovar=$2 } if [ $EPOCHSECONDS ] ; then |