Skip to content

Commit a149f17

Browse files
committed
Made sure max length is respected for the player
1 parent f829cc0 commit a149f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mac-player.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ main() {
249249

250250
# Allow scrolling
251251
local str=$(cat "$cache_file")
252-
if [ "$SCROLL" = true ]; then
252+
if [ "$SCROLL" = true ] && [ "${#str}" -ge $MAX_LENGTH ]; then
253253
scroll "$str" "$MAX_LENGTH" "$SCROLL_SPEED"
254254
else
255255
echo "$str"

0 commit comments

Comments
 (0)