Skip to content

Commit

Permalink
fix: toggle GpChatNew popup (resolve #112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx committed Feb 28, 2024
1 parent a8bf93b commit be8c2b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,9 @@ M.cmd.ChatNew = function(params, model, system_prompt)
end

M.cmd.ChatToggle = function(params, model, system_prompt)
M._toggle_close(M._toggle_kind.popup)
if M._toggle_close(M._toggle_kind.popup) then
return
end
if M._toggle_close(M._toggle_kind.chat) and params.range ~= 2 then
return
end
Expand Down

0 comments on commit be8c2b1

Please sign in to comment.