fix(git/log_view): preserve highlights across :e

This commit is contained in:
2026-05-08 04:02:51 +02:00
parent 62e711d606
commit 1d5ab084ef
+1 -3
View File
@@ -96,9 +96,7 @@ function M.read_uri(buf)
repo.bind(buf, r)
util.setup_scratch(buf, { bufhidden = "delete" })
if vim.bo[buf].filetype ~= "gitlog" then
vim.bo[buf].filetype = "gitlog"
end
vim.bo[buf].filetype = "gitlog"
attach_dispatch(buf)
populate(buf, r)