aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-30 23:52:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-30 23:52:04 +1200
commit934a1a2b26429a859fd940433751fc6b1defa3c9 (patch)
tree25b48bbff7d8ad372d18e44249639399b62ade26
parent607c2638b0fa94e8bd4a5db5e7757a060d7db093 (diff)
parent33c14d035ef8206546da40bb22f284f46979d337 (diff)
downloadvim-insert-cancel-6.0.1.tar.gz (sig)
vim-insert-cancel-6.0.1.zip
Merge branch 'hotfix/v6.0.1'HEADv6.0.1master
* hotfix/v6.0.1: Set change number cache on buffer entry
-rw-r--r--VERSION2
-rw-r--r--plugin/insert_cancel.vim5
2 files changed, 4 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 09b254e..5fe6072 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-6.0.0
+6.0.1
diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim
index 540031b..d8c2c9b 100644
--- a/plugin/insert_cancel.vim
+++ b/plugin/insert_cancel.vim
@@ -12,10 +12,11 @@ if exists('loaded_insert_cancel') || &compatible || v:version < 700
endif
let loaded_insert_cancel = 1
-" Each time the cursor moves in normal mode, cache the current change number
+" On entering a buffer, and then each time the cursor moves in normal mode,
+" cache the current change number
augroup insert_cancel
autocmd!
- autocmd CursorMoved *
+ autocmd BufEnter,CursorMoved *
\ let b:insert_cancel_changenr = changenr()
augroup END