Skip to content

Commit fcbf0cd

Browse files
gravndalibhagwan
authored andcommitted
fix(actions): ignore dirty buffers if not last window
Fixes issue where fzf-lua would refuse to switch away from dirty buffers opened in multiple windows when `set nohidden`.
1 parent db3ccff commit fcbf0cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/actions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ M.vimcmd_entry = function(vimcmd, selected, opts, bufedit)
230230
elseif not vim.o.hidden
231231
and not vim.o.confirm
232232
and not vim.o.autowriteall
233-
and utils.buffer_is_dirty(vim.api.nvim_get_current_buf(), true) then
233+
and utils.buffer_is_dirty(vim.api.nvim_get_current_buf(), true, true) then
234234
return
235235
end
236236
end

0 commit comments

Comments
 (0)