aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-23 17:53:53 +0800
committerGitHub <noreply@github.com>2025-02-23 17:53:53 +0800
commitf932c7852e014bf608abdb617fb10dfc464ca9bc (patch)
tree1e5f3880cca4f9663c5f36f0ea21ba3738621089 /src/nvim/buffer.c
parent16e6f6e5841dd582620307e110b3da851e0e0a95 (diff)
parent365b865d6b92f3035e95ddbc1a7d111413cbe141 (diff)
downloadrneovim-f932c7852e014bf608abdb617fb10dfc464ca9bc.tar.gz
rneovim-f932c7852e014bf608abdb617fb10dfc464ca9bc.tar.bz2
rneovim-f932c7852e014bf608abdb617fb10dfc464ca9bc.zip
Merge pull request #32593 from zeertzjq/vim-9.1.1139
vim-patch:9.1.{1139,1141}
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);
}
}