From 2cf31fb7053fd68c8a2a08e194a1653d1dbb7e9d Mon Sep 17 00:00:00 2001 From: 27Onion Nebell Date: Wed, 15 Jul 2026 10:55:17 +0800 Subject: [PATCH] fix: binary file rename changes in commit view --- lua/neogit/buffers/commit_view/parsing.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/neogit/buffers/commit_view/parsing.lua b/lua/neogit/buffers/commit_view/parsing.lua index 869ed3e2c..67ddc6468 100644 --- a/lua/neogit/buffers/commit_view/parsing.lua +++ b/lua/neogit/buffers/commit_view/parsing.lua @@ -22,6 +22,10 @@ function M.parse_commit_overview(raw) -- matches: .../db/b8571c4f873daff059c04443077b43a703338a | Bin 0 -> 192 bytes file.path, file.changes = raw[i]:match(" (.*)%s+|%s+(Bin .*)$") end + if vim.tbl_isempty(file) then + -- matches: resource/{ => audio}/error.wav | Bin + file.path, file.changes = raw[i]:match(" (.*)%s+|%s+(Bin)$") + end table.insert(overview.files, file) end