Skip to content

Commit

Permalink
Fix argument of exists() function calls checking for autocommands. (#…
Browse files Browse the repository at this point in the history
…1165)

* Fix syntax of exists function calls checking for autocommands.

* Update version number in change log.
  • Loading branch information
PhilRunninger authored Aug 9, 2020
1 parent 373a4b2 commit 6b5d70e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR)
-->
#### 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)
- **.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)
Expand Down
2 changes: 1 addition & 1 deletion lib/nerdtree/creator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endfunction

" FUNCTION: s:Creator._broadcastInitEvent() {{{1
function! s:Creator._broadcastInitEvent()
if exists('#NERDTreeInit')
if exists('#User#NERDTreeInit')
doautocmd User NERDTreeInit
endif
endfunction
Expand Down
2 changes: 1 addition & 1 deletion lib/nerdtree/nerdtree.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function! s:NERDTree.changeRoot(node)
call self.render()
call self.root.putCursorHere(0, 0)

if exists('#NERDTreeNewRoot')
if exists('#User#NERDTreeNewRoot')
doautocmd User NERDTreeNewRoot
endif
endfunction
Expand Down

0 comments on commit 6b5d70e

Please sign in to comment.