We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26d64e commit b1a632fCopy full SHA for b1a632f
lua/sos/impl.lua
@@ -50,7 +50,6 @@ local err
50
-- when :confirm is used). This flag is set at least on :read and :file. See
51
-- :h not-edited.
52
-- * Use ++p flag to auto create parent dirs? Or prompt?
53
--- * Ensure 'write' is set, otherwise this will prob error with msg!?
54
55
---@return nil
56
local function write_current_buf()
@@ -79,6 +78,7 @@ end
79
78
function M.write_buf_if_needed(buf)
80
if
81
vim.bo[buf].mod
+ and vim.o.write
82
and not vim.bo[buf].ro
83
and api.nvim_buf_is_loaded(buf)
84
and wanted_buftype(buf)
0 commit comments