aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-06 22:04:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-06 22:04:32 +1200
commitedb342cf377c7a1edd18ced34d6ffb54cd88eb55 (patch)
tree561b1086c5dbf23c21568eb914e7057813ddf8d6
parentMerge branch 'release/v0.2.0' (diff)
downloadvim-undofileskip-edb342cf377c7a1edd18ced34d6ffb54cd88eb55.tar.gz
vim-undofileskip-edb342cf377c7a1edd18ced34d6ffb54cd88eb55.zip
Correct buffer hooks
I need to remember to read the manual properly.
-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