mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-28 08:14:57 +08:00
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:
parent
a08ff80126
commit
9a4ebfb5cb
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