about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsb_predictor.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sb_predictor.sh b/sb_predictor.sh
index 6059ce0..1cae0dd 100755
--- a/sb_predictor.sh
+++ b/sb_predictor.sh
@@ -31,7 +31,7 @@ typeSomehow(){
 	IFS=''
 	while read -r word; do
 		if test -e "$complete"; then
-			test -n "${word:1}" && wl-ime-type -- "${word:1}"
+			test -n "${word#?}" && wl-ime-type -- "${word#?}"
 		else
 			wl-ime-type -- "$word"
 		fi
@@ -40,7 +40,7 @@ typeSomehow(){
 cat 0<> "$sock"|suggpicker 2>/dev/null|saveWord | typeSomehow &
 IFS=''
 while read -r swipe; do
-	if test -n "${swipe:1}"; then
+	if test -n "${swipe#?}"; then
 		touch "$complete"
 		# TODO: change words
 		echo "$swipe" | swipeGuess "$words" 5 >> "$sock"