From 6e47f4df2cc52a24bf58b39367f7e63492885122 Mon Sep 17 00:00:00 2001 From: kdav5758 Date: Thu, 1 Jul 2021 18:30:57 -0500 Subject: [PATCH] fixed printing message --- lua/autosave/modules/autocmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autosave/modules/autocmds.lua b/lua/autosave/modules/autocmds.lua index 6faff8d..062b538 100644 --- a/lua/autosave/modules/autocmds.lua +++ b/lua/autosave/modules/autocmds.lua @@ -29,7 +29,7 @@ local function actual_save() -- print opts["execution_message"] if (api.nvim_eval([[&modified]]) == 1) then cmd("silent! write") - if (get_modified() == nil) then set_modified(true) end + if (get_modified() == nil or get_modified() == false) then set_modified(true) end end end