From 68013238b4f891cdd485aa8e17ddfed6b320d728 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sun, 29 Jan 2017 02:22:09 +0100 Subject: [PATCH] Restrict to be removed sign IDs to buffer --- autoload/sy/sign.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/sy/sign.vim b/autoload/sy/sign.vim index 9bf256e..595f0b4 100644 --- a/autoload/sy/sign.vim +++ b/autoload/sy/sign.vim @@ -39,7 +39,7 @@ function! sy#sign#get_current_signs() abort " Removing line 3 would lead to the second sign to be shifted up " to line 3. Now there are still 2 signs, both one line 3. if has_key(b:sy.internal, line) - execute 'sign unplace' b:sy.internal[line].id + execute 'sign unplace' b:sy.internal[line].id 'buffer='.b:sy.buffer endif let b:sy.internal[line] = { 'type': type, 'id': id } else @@ -184,7 +184,7 @@ function! sy#sign#process_diff(diff) abort " Remove obsoleted signs. for line in filter(keys(b:sy.internal), '!has_key(b:sy.signtable, v:val)') - execute 'sign unplace' b:sy.internal[line].id + execute 'sign unplace' b:sy.internal[line].id 'buffer='.b:sy.buffer endfor let b:sy.stats = [added, modified, deleted] @@ -243,7 +243,7 @@ function! s:external_sign_present(line) abort if has_key(b:sy.external, a:line) if has_key(b:sy.internal, a:line) " Remove Sy signs from lines with other signs. - execute 'sign unplace' b:sy.internal[a:line].id + execute 'sign unplace' b:sy.internal[a:line].id 'buffer='.b:sy.buffer endif return 1 endif