From b2638165ff200e422782c1ba961fbf0c3e522882 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 13 Oct 2021 14:08:42 +0200 Subject: [PATCH] Fixed writing of shada files --- lua/autocommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autocommands.lua b/lua/autocommands.lua index 0386138..983ab72 100644 --- a/lua/autocommands.lua +++ b/lua/autocommands.lua @@ -18,7 +18,7 @@ local autocmds = { { 'BufRead', '*', [[call setpos(".", getpos("'\""))]] }; }; save_shada = { - {'VimLeave', '*', 'wshada!'}; + {'CursorHold,FocusGained,FocusLost', '*', 'rshada|wshada'}; }; resize_windows_proportionally = { { 'VimResized', '*', ':wincmd =' };