Skip to content

Commit

Permalink
fix(cli): return silently if ui.select cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
theofabilous authored and lewis6991 committed Nov 17, 2023
1 parent 37d26d7 commit 0ccd5fb
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 0ccd5fb

Please sign in to comment.