Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #100 from jpmv27/load_bookmarks_at_init_with_empty…
…_file

Load bookmarks at init even with empty buffer
  • Loading branch information
Mattes Groeger committed Oct 13, 2016
2 parents 8ab5d81 + 4196e44 commit 9bb669e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/bookmark.vim
Expand Up @@ -41,6 +41,8 @@ function! s:init(file)
endif endif
if a:file !=# '' if a:file !=# ''
call s:set_up_auto_save(a:file) call s:set_up_auto_save(a:file)
elseif g:bookmark_manage_per_buffer ==# 0 && g:bookmark_save_per_working_dir ==# 0
call BookmarkLoad(s:bookmark_save_file(''), 1, 1)
endif endif
endfunction endfunction


Expand Down Expand Up @@ -364,7 +366,7 @@ function! s:bookmark_save_file(file)
" Managing bookmarks per buffer implies saving them to a location based on the " Managing bookmarks per buffer implies saving them to a location based on the
" open file (working dir doesn't make much sense unless auto changing the " open file (working dir doesn't make much sense unless auto changing the
" working directory based on current file location is turned on - but this is " working directory based on current file location is turned on - but this is
" a seious dependency to try and require), so the function used to customize " a serious dependency to try and require), so the function used to customize
" the bookmarks file location must be based on the current file. " the bookmarks file location must be based on the current file.
" For backwards compatibility reasons, a new function is used. " For backwards compatibility reasons, a new function is used.
if (g:bookmark_manage_per_buffer ==# 1) if (g:bookmark_manage_per_buffer ==# 1)
Expand Down

0 comments on commit 9bb669e

Please sign in to comment.