mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
Change minimum vim (#991)
* Add a new function to implement and() from vim 7.4. * Change minimum required version of vim to 7.3.
This commit is contained in:
@@ -256,7 +256,7 @@ endfunction
|
||||
function! s:Bookmark.open(nerdtree, ...)
|
||||
let opts = a:0 ? a:1 : {}
|
||||
|
||||
if and(g:NERDTreeQuitOnOpen,2)
|
||||
if nerdtree#and(g:NERDTreeQuitOnOpen,2)
|
||||
call a:nerdtree.ui.toggleShowBookmarks()
|
||||
endif
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ endfunction
|
||||
"FUNCTION: s:NERDTree.CloseIfQuitOnOpen() {{{1
|
||||
"Closes the NERD tree window if the close on open option is set
|
||||
function! s:NERDTree.CloseIfQuitOnOpen()
|
||||
if and(g:NERDTreeQuitOnOpen,1) && s:NERDTree.IsOpen()
|
||||
if nerdtree#and(g:NERDTreeQuitOnOpen,1) && s:NERDTree.IsOpen()
|
||||
call s:NERDTree.Close()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user