diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-13 22:01:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-13 22:01:02 +0100 |
commit | e13b9afe1283f5ae43232b5992372a0eb570666c (patch) | |
tree | bd533d936ffe99f5791dc6f2f9284d980a88633d /src/ex_docmd.c | |
parent | 70bcd7336f9f19304f32c52a86ed5b4b3de852c2 (diff) | |
download | vim-git-e13b9afe1283f5ae43232b5992372a0eb570666c.tar.gz |
patch 8.0.0177: BufEnter autocommand not fired for a directoryv8.0.0177
Problem: When opening a buffer on a directory and inside a try/catch then
the BufEnter event is not triggered.
Solution: Return NOTDONE from readfile() for a directory and deal with the
three possible return values. (Justin M. Keyes, closes #1375,
closes #1353)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 134a48838..295e53960 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8857,7 +8857,7 @@ ex_read(exarg_T *eap) eap->line2, (linenr_T)0, (linenr_T)MAXLNUM, eap, 0); } - if (i == FAIL) + if (i != OK) { #if defined(FEAT_AUTOCMD) && defined(FEAT_EVAL) if (!aborting()) |