silent! write

This commit is contained in:
kdav5758
2021-07-01 18:23:39 -05:00
parent 1916b33f6b
commit b2a40bcdcc

View File

@@ -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