diffs.nvim/lua
Barrett Ruth 24a6414d8b
fix(init): guard read_file_lines against directory paths (#189)
Problem: when a commit contains a submodule or a symlink to a directory,
`read_file_lines` passes the path to `io.open` which succeeds, then
`f:lines()` raises `"Is a directory"` inside the decoration provider.

Solution: check `vim.fn.isdirectory(path)` before `io.open` and return
nil early, which `compute_hunk_context` already handles gracefully.
2026-03-13 07:14:31 -04:00
..
diffs fix(init): guard read_file_lines against directory paths (#189) 2026-03-13 07:14:31 -04:00