diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 01:03:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 01:03:39 +1200 |
commit | 8ce0cc5fab4411bbd54210ea70202fb5d1c60842 (patch) | |
tree | c0bb2d90954106e33eef63ef9032c0968dd8405a | |
parent | Catch specific mapping errors (diff) | |
download | vim-paste-insert-8ce0cc5fab4411bbd54210ea70202fb5d1c60842.tar.gz vim-paste-insert-8ce0cc5fab4411bbd54210ea70202fb5d1c60842.zip |
Don't fill out .buffer property if already set
-rw-r--r-- | autoload/paste_insert.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/paste_insert.vim b/autoload/paste_insert.vim index e0463a9..f40371b 100644 --- a/autoload/paste_insert.vim +++ b/autoload/paste_insert.vim @@ -109,7 +109,7 @@ function! s:Start() abort " If we collected two mappings, the first one must have been buffer-local, " and Vim before 7.3.032 won't have told us that - if len(maps) == 2 + if len(maps) == 2 && !has_key(maps[0], 'buffer') let maps[0]['buffer'] = 1 endif |