Skip to content

Commit

Permalink
return silently if ui.select is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
theofabilous committed Nov 17, 2023
1 parent 37d26d7 commit 00e3d28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/gitsigns/cli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ M.run = void(function(params)

if not func then
func = select(M.complete('', 'Gitsigns '), {}) --[[@as string]]
if not func then
return
end
end

local pos_args = vim.tbl_map(parse_to_lua, vim.list_slice(pos_args_raw, 2))
Expand Down

0 comments on commit 00e3d28

Please sign in to comment.