Skip to content

Commit

Permalink
fix: resolve issue with toggle_target
Browse files Browse the repository at this point in the history
  • Loading branch information
frankroeder committed Oct 15, 2024
1 parent 3c09773 commit 51e7d1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/parrot/chat_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ local M = {}

---@param params table | string # table with args or string args
---@return number # buf target
M.resolve_buf_target = function(target)
M.resolve_buf_target = function(params)
local target = type(params) == "table" and (params.args or "") or params
local target_map = {
popup = ui.BufTarget.popup,
split = ui.BufTarget.split,
Expand Down

0 comments on commit 51e7d1c

Please sign in to comment.