History

console.lua: fix the height calculation with --video-osd=no

Guido Cella committed 2 years ago

Commit 68ea9fe1 parent 71f22201 file · +2 −1Browse files

Unified · Split

player/lua/console.lua+2−1
@@ -247,7 +247,8 @@ local function ass_escape(str) · 246 unmodified lines
247247 end
248248
249249 local function calculate_max_log_lines()
250− if not mp.get_property_native('vo-configured') then
250+ if not mp.get_property_native('vo-configured')
251+ or not mp.get_property_native('video-osd') then
251252 -- Subtract 1 for the input line and for each line in the status line.
252253 -- This does not detect wrapped lines.
253254 return mp.get_property_native('term-size/h', 24) - 2 -

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t