Commit 8447aae
committed
loadfile: clip long track titles
When a track title is taken from its filename and is very long, clip it
to not make track information too verbose.
term_disp_width() is convenient even for ASS output because it avoids
cutting in the middle of UTF-8 characters.
Fixes mpv-player#10975 along with mpv-player#17021.1 parent 2e5e293 commit 8447aae
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
912 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
913 | 922 | | |
| 923 | + | |
914 | 924 | | |
915 | 925 | | |
916 | 926 | | |
| |||
0 commit comments