From 68ea9fecda207210b9c02adf8bcf22dc333cf819 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 22 Sep 2024 17:27:27 +0200 Subject: [PATCH] console.lua: fix the height calculation with --video-osd=no --- player/lua/console.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index 4ebedc560c..3c69d1456b 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -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 -