Files
neovim/runtime
Christian Clason 927d4d2a15 fix(filetype): run filetype.match on StdinReadPost (#20070)
Problem: filetype detection does not run on piped input
Solution: add `StdinReadPost` to main filetype.lua autocommand

Rationale: legacy filetype detection checked contents by sourcing
`scripts.vim` in separate autocommands, including on `StdinReadPost`.
For Lua filetype detection, this was moved into the main autocommand,
with bundled `scripts.vim` gated behind `g:do_legacy_filetype` (i.e.,
only user `scripts.vim` are sourced for compatibility by default). Adding
`StdinReadPost` to the main autocommand again runs content checks on
piped input without requiring code duplication and low-payoff
refactoring.
2022-09-03 19:27:57 +02:00
..
2022-09-02 15:20:29 +01:00
2022-08-26 19:58:10 +02:00
2022-08-31 08:08:51 +02:00
2022-09-02 15:20:29 +01:00
2022-09-02 15:20:29 +01:00
2022-08-31 08:08:51 +02:00
2021-09-13 16:33:41 +02:00
2022-09-02 15:20:29 +01:00
2021-05-01 22:29:03 -04:00
2022-09-02 15:20:29 +01:00
2021-03-09 19:21:26 +01:00
2022-08-31 08:08:51 +02:00
2022-08-20 10:04:55 +02:00
2021-04-27 09:21:32 -04:00
2022-04-15 13:38:44 +02:00
2022-07-26 11:26:23 +02:00