Skip to content

Commit 378fbc7

Browse files
committed
loadfile: clip long track lines
When a track information is longer than the terminal width, clip it and add ellipsis. Useful for long URLs. Fixes mpv-player#10975 along with mpv-player#17021.
1 parent 2e5e293 commit 378fbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

player/loadfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static void print_stream(struct MPContext *mpctx, struct track *t, bool indent)
254254
tname = "Subs"; selopt = "sid"; langopt = "slang";
255255
break;
256256
}
257-
char b[2048] = {0};
257+
char b[2048] = {TERM_MSG_0};
258258

259259
int max_lang_length = 0;
260260
for (int n = 0; n < mpctx->num_tracks; n++) {

0 commit comments

Comments
 (0)