mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00

Uses of `getline` in `filetype.lua` currently assume it always returns a string. However, if the buffer is unloaded when filetype detection runs, `getline` returns `nil`. Fixing this prevents errors when filetype detection is run on unloaded buffers.