~earboxer/SwipeBehaviors

5999a2755b44a76c81a729f9eb5972b6a34b27dc — Zach DeCook 4 months ago 5c18ac4
predictor: delete lastword on backspace
1 files changed, 2 insertions(+), 0 deletions(-)

M predictor.sh
M predictor.sh => predictor.sh +2 -0
@@ 36,6 36,8 @@ while read -r swipe; do
				grep -i -m 5 "^$word " "$twow" |awk '(1){printf $2; i++}(i<5){printf "\t"}END{print ""}' >> "$sock"
				rm -f "$lw"
			fi
		elif test "$swipe" = "$(echo -e "\x08")"; then
			rm -f "$lw"
		else
			printf "$swipe" >> "$lw"
		fi