Merge pull request #866 from lifecrisis/bm_toggle
This commit is contained in:
commit
43d569195c
@ -475,15 +475,23 @@ function! s:UI.toggleIgnoreFilter()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" FUNCTION: s:UI.toggleShowBookmarks() {{{1
|
" FUNCTION: s:UI.toggleShowBookmarks() {{{1
|
||||||
" toggles the display of bookmarks
|
" Toggle the visibility of the Bookmark table.
|
||||||
function! s:UI.toggleShowBookmarks()
|
function! s:UI.toggleShowBookmarks()
|
||||||
let self._showBookmarks = !self._showBookmarks
|
let self._showBookmarks = !self._showBookmarks
|
||||||
|
|
||||||
if self.getShowBookmarks()
|
if self.getShowBookmarks()
|
||||||
call self.nerdtree.render()
|
call self.nerdtree.render()
|
||||||
call g:NERDTree.CursorToBookmarkTable()
|
call g:NERDTree.CursorToBookmarkTable()
|
||||||
else
|
else
|
||||||
|
|
||||||
|
if empty(g:NERDTreeFileNode.GetSelected())
|
||||||
|
call b:NERDTree.root.putCursorHere(0, 0)
|
||||||
|
normal! 0
|
||||||
|
endif
|
||||||
|
|
||||||
call self.renderViewSavingPosition()
|
call self.renderViewSavingPosition()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call self.centerView()
|
call self.centerView()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user