From ac148697e4fadfd3e8b79701a7eb6c68d94bcabd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 29 Mar 2024 10:38:26 +0800 Subject: [PATCH] fix(bookmark): remove sign before add new bookmark --- bundle/bookmarks.vim/autoload/bookmarks.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundle/bookmarks.vim/autoload/bookmarks.vim b/bundle/bookmarks.vim/autoload/bookmarks.vim index 8d9355dee..77790ee45 100644 --- a/bundle/bookmarks.vim/autoload/bookmarks.vim +++ b/bundle/bookmarks.vim/autoload/bookmarks.vim @@ -61,6 +61,9 @@ function! bookmarks#add(file, lnum, text, ...) abort if has_key(s:bookmarks[a:file], a:lnum) && has_key(s:bookmarks[a:file][a:lnum], 'vtextid') call bookmarks#vtext#delete(a:file, s:bookmarks[a:file][a:lnum].vtextid) endif + if has_key(s:bookmarks[a:file], a:lnum) && has_key(s:bookmarks[a:file][a:lnum], 'signid') + exe 'sign unplace ' . s:bookmarks[a:file][a:lnum].signid + endif let s:bookmarks[a:file][a:lnum] = { \ 'text' : a:text, \ 'file' : a:file,