Commits

ZyX_I  committed 9a3c6ea

@aurum/cache: Also drop cache on BufFilePost event. Fixes #39
tests: Added regression test for issue #39

  • Participants
  • Parent commits 1568960

Comments (0)

Files changed (3)

File plugin/aurum/cache.vim

     endif
 endfunction
 augroup AurumCacheBufVars
-    autocmd BufWipeOut * :call s:F.bufwipeout()
+    autocmd BufWipeOut,BufFilePost * :call s:F.bufwipeout()
 augroup END
 let s:_augroups+=['AurumCacheBufVars']
 "▶1 getcachedval :: key, func, args, dict → val + cbvar

File test/regression-sav-cache.in

+:command WStatus :call WriteFile(fnamemodify(@%, ':t').': '.aurum#status())
+:R e testfile
+:let g:oldfile=@%
+:write
+:WStatus
+:AuTrack
+:write " Drop cache
+:WStatus
+:R sav testfile2
+:WStatus

File test/regression-sav-cache.ok

+testfile: unknown
+testfile: added
+testfile2: unknown