0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.1.1139: [fifo] is not displayed when editing a fifo

Problem:  [fifo] is not displayed when editing a fifo
          (after v7.4.2189)
Solution: stat the filename and detect the type correctly

fixes: #16702
closes: #16705

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-02-23 09:36:56 +01:00
parent a7b8120820
commit f1c3134ee1
4 changed files with 37 additions and 3 deletions

View File

@@ -275,6 +275,8 @@ open_buffer(
{
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);
}
#endif