diff --git a/player/lua/console.lua b/player/lua/console.lua index 9a5c219096..007a67b7fe 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -276,8 +276,9 @@ local function calculate_max_log_lines() select(2, mp.get_property('term-status-msg'):gsub('\\n', '')) end - return math.floor((select(2, get_scaled_osd_dimensions()) - bottom_left_margin) - * (1 - global_margins.t - global_margins.b) + return math.floor((select(2, get_scaled_osd_dimensions()) + * (1 - global_margins.t - global_margins.b) + - bottom_left_margin) / opts.font_size -- Subtract 1 for the input line and 0.5 for the empty -- line between the log and the input line.