summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-03 17:36:27 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-03 17:36:27 +0100
commitb7407d3fc9496f9048fb65ab17b5ba3444965c0e (patch)
treeea713a63c3771ff35b52aadef755102b55cc377d /src/netbeans.c
parentddb349369d107c14fad9c38baf2f0e2b8514fbf0 (diff)
downloadvim-git-b7407d3fc9496f9048fb65ab17b5ba3444965c0e.tar.gz
patch 8.0.1459: cannot handle change of directoryv8.0.1459
Problem: Cannot handle change of directory. Solution: Add the DirChanged autocommand event. (Andy Massimino, closes #888) Avoid changing directory for 'autochdir' too often.
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index c906d2891..199cfd63c 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -2663,7 +2663,7 @@ netbeans_file_opened(buf_T *bufp)
nbdebug(("EVT: %s", buffer));
nb_send(buffer, "netbeans_file_opened");
- if (p_acd && vim_chdirfile(bufp->b_ffname) == OK)
+ if (p_acd && vim_chdirfile(bufp->b_ffname, "auto") == OK)
shorten_fnames(TRUE);
}