fix: don't show preview if there are no changes (#19)
This commit is contained in:
parent
6a227e932f
commit
6d0b6ac43c
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ end
|
||||||
---@param should_confirm nil|boolean
|
---@param should_confirm nil|boolean
|
||||||
---@param cb fun(proceed: boolean)
|
---@param cb fun(proceed: boolean)
|
||||||
M.show = vim.schedule_wrap(function(actions, should_confirm, cb)
|
M.show = vim.schedule_wrap(function(actions, should_confirm, cb)
|
||||||
if should_confirm == false then
|
if should_confirm == false or #actions == 0 then
|
||||||
cb(true)
|
cb(true)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue