From 1d5ab084ef25fccb67e3e85881ebd57f825f54e3 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 8 May 2026 04:02:51 +0200 Subject: [PATCH] fix(git/log_view): preserve highlights across :e --- lua/git/log_view.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/git/log_view.lua b/lua/git/log_view.lua index 80a91d6..7d90c9f 100644 --- a/lua/git/log_view.lua +++ b/lua/git/log_view.lua @@ -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)