plugins for wvkbd using swipeGuess
Diffstat (limited to 'sb_picker.sh')
-rwxr-xr-xsb_picker.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sb_picker.sh b/sb_picker.sh
index 69dda6e..908463b 100755
--- a/sb_picker.sh
+++ b/sb_picker.sh
@@ -8,7 +8,7 @@ cat 0<> "$sock"|suggpicker 2>/dev/null|completelyTypeWord.sh &
swipeGuess "$words" 5 | while read -r word; do
set -- $word
if test -n "$2"; then
- s1="$(echo "$1" | mapScore "$keymap" bee|cut -f1)"
+ s1="$(echo "$1" | mapScore "$keymap" bee |cut -f1)"
s2="$(echo "$2" | mapScore "$keymap" bee |cut -f1)"
cutoff="$(( ($s1 * 19 / 20) - 2 ))"
if [ "$s2" -lt "$cutoff" ]; then
@@ -21,7 +21,7 @@ swipeGuess "$words" 5 | while read -r word; do
fi
fi
if test "$1" && ! test "$2"; then
- wtype "${1:1}"
+ wtype "${1#?}"
elif ! test "$2"; then
echo "" >> "$sock"
else