aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--autoload/paste_insert.vim5
2 files changed, 6 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 7dea76e..6d7de6e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.1
+1.0.2
diff --git a/autoload/paste_insert.vim b/autoload/paste_insert.vim
index 49f630f..dc87c98 100644
--- a/autoload/paste_insert.vim
+++ b/autoload/paste_insert.vim
@@ -1,6 +1,11 @@
" Autoloaded entry point function
function! paste_insert#() abort
+ " Stop and do nothing if already in the middle of a paste
+ if exists('#paste_insert#User#Start')
+ return
+ endif
+
" Set up an event table
augroup paste_insert
autocmd!