Skip to content

Commit

Permalink
mp.input: reduce chance of id name collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
CogentRedTester committed Nov 16, 2024
1 parent 695655a commit 27cd7f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/find.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ local function main(key, state, co)
if input_loaded then
input.get({
prompt = text .. "\n>",
id = "find",
id = "file-browser/find",
submit = fb.coroutine.callback(),
})
elseif user_input_loaded then
Expand Down
1 change: 1 addition & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if input_loaded then
mp.add_key_binding("Alt+o", "browse-directory/get-user-input", function()
input.get({
prompt = "open directory:",
id = "file-browser/browse-directory",
submit = function(text)
controls.browse_directory(text)
input.terminate()
Expand Down

0 comments on commit 27cd7f3

Please sign in to comment.