mirror of
https://github.com/neovim/neovim.git
synced 2026-09-03 21:00:34 +00:00
Problem: `compute_hash()` reconstructs buffer contents with `fileformat` set to `mac` using CRLF (`dos`) line endings. The resulting hash does not match the file's bytes. Solution: Define the line ending for every supported file format. Use that mapping when reconstructing buffer contents for hashing.