mirror of
https://github.com/mpv-player/mpv
synced 2025-03-06 14:17:46 +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
|
end
|
||||||
|
|
||||||
local function calculate_max_log_lines()
|
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.
|
-- Subtract 1 for the input line and for each line in the status line.
|
||||||
-- This does not detect wrapped lines.
|
-- This does not detect wrapped lines.
|
||||||
return mp.get_property_native('term-size/h', 24) - 2 -
|
return mp.get_property_native('term-size/h', 24) - 2 -
|
||||||
|
Loading…
Reference in New Issue
Block a user