mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-07 00:57:28 +08:00
fixed displaying wrong glyph at the start of input
This commit is contained in:
parent
4b3f733b29
commit
846c8b6280
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue