fix: block quit if changes during :wq (#98)
This commit is contained in:
parent
41077847b9
commit
37cb6be6f6
1 changed files with 0 additions and 1 deletions
|
|
@ -785,7 +785,6 @@ M.setup = function(opts)
|
|||
if vim.endswith(bufname, "/") then
|
||||
vim.cmd.doautocmd({ args = { "BufWritePre", params.file }, mods = { silent = true } })
|
||||
M.save()
|
||||
vim.bo[params.buf].modified = false
|
||||
vim.cmd.doautocmd({ args = { "BufWritePost", params.file }, mods = { silent = true } })
|
||||
else
|
||||
local adapter = config.get_adapter_by_scheme(bufname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue