stats.lua: clip lines with ${term-clip-cc}

Use the property introduced in bf025cd289 to clip the lines of stats.lua
with accurate unicode width detection and considering --msg-module and
--msg-time. This allows removing the term ellipsis functions.

Also use script-opts-append instead of script-opts in the docs so
script-opts in mpv.conf, which could change keybindings, are not
overriden.
This commit is contained in:
Guido Cella
2024-10-18 00:00:22 +02:00
committed by Kacper Michajłow
parent f72f6b0fc4
commit a187110f4a
3 changed files with 14 additions and 63 deletions

View File

@@ -0,0 +1,2 @@
remove `stats-term_width_limit` script-opt
add `stats-term_clip` script-opt