aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-13 04:09:37 +0100
committerGitHub <noreply@github.com>2017-01-13 04:09:37 +0100
commitf68663542037aaa4ae954aacae7adf2e88b151d5 (patch)
tree4e007995ce7eed3937d8aeb791cf25f0f5ea1e19 /src/nvim/ex_cmds.c
parent802b49ee803aed63c15bd35ffc10e1ba2ba30e59 (diff)
parent82edcb593b19755187371635d7b5aabdf024bd1f (diff)
downloadrneovim-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.c4
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);