Skip to content

Commit

Permalink
[MattesGroeger] Fixes MattesGroeger#118 bookmarks hiding when switchi…
Browse files Browse the repository at this point in the history
…ng buffer MattesGroeger#169
  • Loading branch information
JS-Zheng committed Sep 13, 2022
1 parent 9cc5fa7 commit 1a9e7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/bookmark.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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('<afile>:p'))
Expand Down Expand Up @@ -174,7 +174,7 @@ function! BookmarkPrev()
endfunction
command! PrevBookmark call CallDeprecatedCommand('BookmarkPrev')
command! BookmarkPrev call BookmarkPrev()
command! CtrlPBookmark call ctrlp#init(ctrlp#bookmarks#id())
command! CtrlPBookmark call ctrlp#init(ctrlp#bookmarks#id())

function! BookmarkShowAll()
if s:is_quickfix_win()
Expand Down

0 comments on commit 1a9e7c8

Please sign in to comment.