aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-07-11 16:49:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-07-11 16:49:40 +1200
commit0365dd11c050f885050cd6dd22405c81aba5f462 (patch)
treefc8eff10f2bb8fc10d92ee6eaf587049da34bb8a
parent7de7e84a3c63a4b66e085ad4fb42d3e0b202c0fb (diff)
parent521f067900cd13279dac31bbdd0ad91049b8088b (diff)
downloadvim-paste-insert-0365dd11c050f885050cd6dd22405c81aba5f462.tar.gz
vim-paste-insert-0365dd11c050f885050cd6dd22405c81aba5f462.zip
Merge branch 'hotfix/v1.0.1'v1.0.1
* hotfix/v1.0.1: Correct legacy TextChanged test
-rw-r--r--VERSION2
-rw-r--r--autoload/paste_insert.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 3eefcb9..7dea76e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.0
+1.0.1
diff --git a/autoload/paste_insert.vim b/autoload/paste_insert.vim
index 5b26875..49f630f 100644
--- a/autoload/paste_insert.vim
+++ b/autoload/paste_insert.vim
@@ -49,7 +49,7 @@ let s:cancel_keys = get(g:, 'paste_insert_cancel_keys', ['<C-C>', '<Esc>'])
" Start the paste: remap any cancel keys, set 'paste'
function! s:Start() abort
- if exists('##TextChanged')
+ if !exists('##TextChanged')
let b:paste_insert_changenr = changenr()
endif
for key in s:cancel_keys
@@ -65,7 +65,7 @@ endfunction
" Stop the paste: unset 'paste', restore prior function of cancel key
function! s:Stop() abort
- if exists('##TextChanged')
+ if !exists('##TextChanged')
unlet b:paste_insert_changenr
endif
set nopaste paste?