From a86f6387a5dabf0102b4cab433b414a29456f792 Mon Sep 17 00:00:00 2001 From: Mattes Date: Fri, 1 Oct 2021 22:08:39 +0200 Subject: [PATCH] Fixes #118 bookmarks hiding when switching buffer --- plugin/bookmark.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/bookmark.vim b/plugin/bookmark.vim index 9c4e776..c5bb2ef 100644 --- a/plugin/bookmark.vim +++ b/plugin/bookmark.vim @@ -35,7 +35,7 @@ call s:set('g:bookmark_disable_ctrlp', 0 ) call s:set('g:bookmark_display_annotation', 0 ) function! s:init(file) - if g:bookmark_auto_save ==# 1 || g:bookmark_manage_per_buffer ==# 1 + if g:bookmark_auto_save ==# 1 && g:bookmark_manage_per_buffer ==# 1 augroup bm_vim_enter autocmd! autocmd BufEnter * call s:set_up_auto_save(expand(':p'))