Skip to content

Commit

Permalink
Don't execute empty command (#44)
Browse files Browse the repository at this point in the history
* don't execute empty command

* don't execute empty command

调整判空的位置
  • Loading branch information
verygoodlee authored May 23, 2024
1 parent 2652786 commit ae77f77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inputevent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function now()
end

function command(command)
if not command or command == '' then return true end
return mp.command(command)
end

Expand Down

0 comments on commit ae77f77

Please sign in to comment.