Skip to content

Commit 2610245

Browse files
committed
Fix order of log calls
#53 (comment)
1 parent 3f9bc5e commit 2610245

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

youtube-upnext.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,6 @@ local function show_menu()
988988
mp.set_osd_ass(w, h, ass.text)
989989

990990
if no_video then
991-
input.set_log(terminal_lines)
992991

993992
-- Open terminal input
994993
terminal_id = terminal_id + 1
@@ -999,6 +998,8 @@ local function show_menu()
999998
closed = terminal_closed,
1000999
id = "upnext" .. tostring(terminal_id),
10011000
})
1001+
input.set_log(terminal_lines)
1002+
10021003
-- Add key binding after opening terminal to overwrite arrow keys
10031004
mp.add_timeout(0.1, function()
10041005
mp.add_forced_key_binding(

0 commit comments

Comments
 (0)