We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b5235 commit 8057a9cCopy full SHA for 8057a9c
scripts/mac-player.sh
@@ -256,14 +256,16 @@ main() {
256
local full_track
257
full_track=$(trackStatus "$PAUSE_ICON" "$PLAY_ICON")
258
259
- if [ "$SCROLL" = "false" ]; then
+ if [ "$SCROLL" = "true" ] && [ "${#str}" -ge $MAX_LENGTH ]; then
260
+ echo "$full_track" > "$cache_file"
261
+ else
262
sliceTrack "$full_track" "$MAX_LENGTH" > "$cache_file"
263
fi
264
265
266
# Allow scrolling
267
local str=$(cat "$cache_file")
- if [ "$SCROLL" = "true" ] && [ "${#str}" -ge $MAX_LENGTH ]; then
268
+ if [ "$SCROLL" = "true" ]; then
269
scroll "$str" "$MAX_LENGTH" "$SCROLL_SPEED"
270
else
271
echo "$str"
0 commit comments