Skip to content

Commit

Permalink
Merge pull request #29 from kra-mo/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect command name in terminal:execute
  • Loading branch information
adamharrison authored Jan 26, 2024
2 parents 394b577 + 39b07dc commit e4f69f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/terminal/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ command.add(nil, {
end
end,
["terminal:execute"] = function(text)
if not core.terminal_view then command.perform("terminal:toggle") end
if not core.terminal_view then command.perform("terminal:toggle-drawer") end
local target_view = core.active_view:is(TerminalView) and core.active_view or core.terminal_view
if not text then
core.command_view:enter("Execute Command", { submit = function(text) target_view:input(text .. target_view.options.newline) end })
Expand Down

0 comments on commit e4f69f7

Please sign in to comment.