mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2025-12-06 06:36:11 +00:00
silent! write
This commit is contained in:
@@ -28,10 +28,8 @@ local function actual_save()
|
|||||||
-- might use update, but in that case it can't be checekd if a file was modified and so it will always
|
-- might use update, but in that case it can't be checekd if a file was modified and so it will always
|
||||||
-- print opts["execution_message"]
|
-- print opts["execution_message"]
|
||||||
if (api.nvim_eval([[&modified]]) == 1) then
|
if (api.nvim_eval([[&modified]]) == 1) then
|
||||||
cmd("write")
|
cmd("silent! write")
|
||||||
if (get_modified() == nil) then
|
if (get_modified() == nil) then set_modified(true) end
|
||||||
set_modified(true)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user