mirror of
https://github.com/mpv-player/mpv
synced 2025-02-09 00:17:07 +00:00
console.lua: fix the height calculation with --video-osd=no
This commit is contained in:
parent
71f2220991
commit
68ea9fecda
@ -247,7 +247,8 @@ local function ass_escape(str)
|
||||
end
|
||||
|
||||
local function calculate_max_log_lines()
|
||||
if not mp.get_property_native('vo-configured') then
|
||||
if not mp.get_property_native('vo-configured')
|
||||
or not mp.get_property_native('video-osd') then
|
||||
-- Subtract 1 for the input line and for each line in the status line.
|
||||
-- This does not detect wrapped lines.
|
||||
return mp.get_property_native('term-size/h', 24) - 2 -
|
||||
|
Loading…
Reference in New Issue
Block a user