fixed displaying wrong glyph at the start of input

Former-commit-id: 846c8b6280
Former-commit-id: c17c5d47c4bd0324ee6aea0d50ca5acf179b1166
Former-commit-id: fa52ff917d0d579c0ad594c4014987912ff7aa3c
This commit is contained in:
elena 2017-09-28 20:13:33 +03:00
parent a08ff80126
commit 9a4ebfb5cb

View file

@ -52,7 +52,7 @@ do
LOOPTAIL="$(echo $INPUT | cut -c -$LIMIT)"
FULLSTRING="$(echo "$INPUT$SEPERATOR$LOOPTAIL")"
echo -n " "
echo -n " "
# Show only LIMIT characters, from i to i+LIMIT. Output scrolls due to incrementing i
echo -n $FULLSTRING | cut -c $i-$(($LIMIT+$i))
#echo -n $FULLSTRING | awk -v charlimit="$LIMIT" -v start="$i" '{print substr($0,start,charlimit)}'