builtin: default exclude from 'resume' (#267)

This commit is contained in:
bhagwan 2021-12-17 21:38:45 -08:00
parent 0069dc4a8e
commit a6213f05e1

View File

@ -31,6 +31,13 @@ M.metatable = function(opts)
opts.fzf_opts['--preview-window'] = 'hidden:down:10'
opts.fzf_opts['--no-multi'] = ''
if opts.no_resume == nil and
opts.no_global_resume == nil then
-- builtin default is no resume as
-- the behavior might confuse users (#267)
opts.no_resume = true
end
core.fzf_wrap(opts, methods, function(selected)
if not selected then return end