diff options
author | Andrea Cedraro <a.cedraro@gmail.com> | 2020-11-07 18:02:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 12:02:06 -0500 |
commit | 4c7ad9527db7c4476fd07c1fa95d89983dfba775 (patch) | |
tree | 7e4ac373771376d9e2331c7ba8edccde36553b58 /runtime | |
parent | 643f4a178751df34b27189f7aebea313b17bad3b (diff) | |
download | rneovim-4c7ad9527db7c4476fd07c1fa95d89983dfba775.tar.gz rneovim-4c7ad9527db7c4476fd07c1fa95d89983dfba775.tar.bz2 rneovim-4c7ad9527db7c4476fd07c1fa95d89983dfba775.zip |
Add v:event flag on DirChanged signaling switching window (#13153)
Closes #9909
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 2 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index dbaba1b3ad..ee90d67cbc 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -515,6 +515,8 @@ DirChanged After the |current-directory| was changed. Sets these |v:event| keys: cwd: current working directory scope: "global", "tab", "window" + changed_window: v:true if we fired the event + switching window (or tab) Non-recursive (event cannot trigger itself). *FileAppendCmd* FileAppendCmd Before appending to a file. Should do the diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 800de63a55..6da89f5491 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1614,6 +1614,8 @@ v:event Dictionary of event data for the current |autocommand|. Valid |CompleteChanged|. scrollbar Is |v:true| if popup menu have scrollbar, or |v:false| if not. + changed_window Is |v:true| if the the event fired + while changing window (or tab) on |DirChanged|. *v:exception* *exception-variable* v:exception The value of the exception most recently caught and not |