Skip to content

Commit db3ccff

Browse files
committed
fix(actions): ignore dirty buffers if set autowriteall
fix #2378
1 parent c0c0926 commit db3ccff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/fzf-lua/actions.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ M.vimcmd_entry = function(vimcmd, selected, opts, bufedit)
229229
vimcmd, will_replace_curbuf = "split", false
230230
elseif not vim.o.hidden
231231
and not vim.o.confirm
232+
and not vim.o.autowriteall
232233
and utils.buffer_is_dirty(vim.api.nvim_get_current_buf(), true) then
233234
return
234235
end

0 commit comments

Comments
 (0)