History

console.lua: don't clear not ours osd messages

Note that this still is not perfect, because if osd message is changed, console cannot know about it and would still clear it, but this change make it at least not do it to every message even if console is not used.

Kacper Michajłow committed 2 years ago

Commit c3404fd1 parent 68801781 file · +3 −1Browse files

Showing the changes to player/lua/console.lua (1 of 1 file). Show all

Unified · Split

player/lua/console.lua+3−1
@@ -414,7 +414,9 @@ end · 413 unmodified lines
414local function print_to_terminal()414local function print_to_terminal()
415 -- Clear the log after closing the console.415 -- Clear the log after closing the console.
416 if not repl_active then416 if not repl_active then
417 mp.osd_message('')417 if osd_msg_active then
418 mp.osd_message('')
419 end
418 osd_msg_active = false420 osd_msg_active = false
419 return421 return
420 end422 end

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