aboutsummaryrefslogtreecommitdiff
path: root/plugin/undofileskip.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-06 22:05:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-06 22:05:18 +1200
commit1d0a5cf3aa1bf1f360862819d229d756958df32e (patch)
treed3c81c6f0573a873c54f8db61f50d4ef81ba549a /plugin/undofileskip.vim
parentMerge branch 'release/v0.2.0' (diff)
parentBump VERSION (diff)
downloadvim-undofileskip-aead7c4e753c8bae0a4b9001674710e149e528e5.tar.gz (sig)
vim-undofileskip-aead7c4e753c8bae0a4b9001674710e149e528e5.zip
Merge branch 'hotfix/v0.2.1'HEADv0.2.1master
* hotfix/v0.2.1: Correct buffer hooks
Diffstat (limited to 'plugin/undofileskip.vim')
-rw-r--r--plugin/undofileskip.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/undofileskip.vim b/plugin/undofileskip.vim
index c6b3b1e..7b3373d 100644
--- a/plugin/undofileskip.vim
+++ b/plugin/undofileskip.vim
@@ -30,6 +30,6 @@ endif
" Check the path on every buffer rename, create, or read
augroup undofileskip
autocmd!
- autocmd BufAdd,BufNewFile,BufRead *
+ autocmd BufFilePost,BufNewFile,BufRead *
\ let &l:undofile = undofileskip#Check(expand('<amatch>'))
augroup END