aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 9e6877cbfa..5fec2f1211 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -305,6 +305,8 @@ int open_buffer(bool read_stdin, exarg_T *eap, int flags_arg)
if (read_fifo) {
curbuf->b_p_bin = save_bin;
if (retval == OK) {
+ // don't add READ_FIFO here, otherwise we won't be able to
+ // detect the encoding
retval = read_buffer(false, eap, flags);
}
}