diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-13 04:09:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-13 04:09:37 +0100 |
| commit | f68663542037aaa4ae954aacae7adf2e88b151d5 (patch) | |
| tree | 4e007995ce7eed3937d8aeb791cf25f0f5ea1e19 /src/nvim/ex_cmds.c | |
| parent | 802b49ee803aed63c15bd35ffc10e1ba2ba30e59 (diff) | |
| parent | 82edcb593b19755187371635d7b5aabdf024bd1f (diff) | |
| download | rneovim-f68663542037aaa4ae954aacae7adf2e88b151d5.tar.gz rneovim-f68663542037aaa4ae954aacae7adf2e88b151d5.tar.bz2 rneovim-f68663542037aaa4ae954aacae7adf2e88b151d5.zip | |
Merge #5933 from justinmk/dir-bufenter
open_buffer(): Raise `BufEnter` for directories.
Diffstat (limited to 'src/nvim/ex_cmds.c')
| -rw-r--r-- | src/nvim/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index b1404abc05..69eed33736 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1193,8 +1193,8 @@ static void do_filter( if (do_out) { if (otmp != NULL) { - if (readfile(otmp, NULL, line2, (linenr_T)0, (linenr_T)MAXLNUM, - eap, READ_FILTER) == FAIL) { + if (readfile(otmp, NULL, line2, (linenr_T)0, (linenr_T)MAXLNUM, eap, + READ_FILTER) != OK) { if (!aborting()) { msg_putchar('\n'); EMSG2(_(e_notread), otmp); |
