From 098f1df21e89d2d0ad9feeb19d7930cba6051b00 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 23:51:03 +1200 Subject: Set change number cache on buffer entry --- plugin/insert_cancel.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3 From 33c14d035ef8206546da40bb22f284f46979d337 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 23:51:57 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 09b254e..5fe6072 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.0 +6.0.1 -- cgit v1.2.3