Fix argument of exists() function calls checking for autocommands. (#1165)

* Fix syntax of exists function calls checking for autocommands.

* Update version number in change log.
This commit is contained in:
Phil Runninger 2020-08-09 07:07:55 -04:00 committed by GitHub
parent 373a4b28e4
commit 6b5d70e5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
- **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR) - **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR)
--> -->
#### 6.9 #### 6.9
- **.7**: Fix argument of `exists()` function calls checking for autocommands. (PhilRunninger) [#1165](https://github.com/preservim/nerdtree/pull/1165)
- **.6**: Don't use silent when raising User events (PhilRunninger) [#1164](https://github.com/preservim/nerdtree/pull/1164) - **.6**: Don't use silent when raising User events (PhilRunninger) [#1164](https://github.com/preservim/nerdtree/pull/1164)
- **.5**: Fix highlight for file node. (pirey) [#1157](https://github.com/preservim/nerdtree/pull/1157) - **.5**: Fix highlight for file node. (pirey) [#1157](https://github.com/preservim/nerdtree/pull/1157)
- **.4**: Make sure symbolic links' flags are highlighted correctly. (PhilRunninger) [#1156](https://github.com/preservim/nerdtree/pull/1156) - **.4**: Make sure symbolic links' flags are highlighted correctly. (PhilRunninger) [#1156](https://github.com/preservim/nerdtree/pull/1156)

View File

@ -28,7 +28,7 @@ endfunction
" FUNCTION: s:Creator._broadcastInitEvent() {{{1 " FUNCTION: s:Creator._broadcastInitEvent() {{{1
function! s:Creator._broadcastInitEvent() function! s:Creator._broadcastInitEvent()
if exists('#NERDTreeInit') if exists('#User#NERDTreeInit')
doautocmd User NERDTreeInit doautocmd User NERDTreeInit
endif endif
endfunction endfunction

View File

@ -27,7 +27,7 @@ function! s:NERDTree.changeRoot(node)
call self.render() call self.render()
call self.root.putCursorHere(0, 0) call self.root.putCursorHere(0, 0)
if exists('#NERDTreeNewRoot') if exists('#User#NERDTreeNewRoot')
doautocmd User NERDTreeNewRoot doautocmd User NERDTreeNewRoot
endif endif
endfunction endfunction