Fix stopinsert

Thu, 16 Mar 2023 12:30:42 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 16 Mar 2023 12:30:42 -0500
changeset 1088
c221227cbba5
parent 1087
bfcf9813c223
child 1089
81b964cde5b9

Fix stopinsert

.config/nvim/lua/config/autocmds.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/lua/config/autocmds.lua
+++ b/.config/nvim/lua/config/autocmds.lua
@@ -15,7 +15,7 @@ autocmd(g, "FocusGained", "*", cmd.check
 -- Stopinsert on leave, or autowriteall doesn't work.
 autocmd(g, { "WinLeave", "FocusLost" }, "*", function()
   if fn.pumvisible() == 0 then
-    fn.stopinsert()
+    cmd.stopinsert()
   end
   cmd.wa()
 end)

mercurial