Skip to content

Commit

Permalink
FIX: Don't highlight origin/HEAD with NeogitBranchHead
Browse files Browse the repository at this point in the history
  • Loading branch information
gollth committed Nov 17, 2023
1 parent 9d0a805 commit 91d4225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neogit/buffers/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ M.CommitEntry = Component.new(function(commit, args)
remote_name, local_name = local_name, remote_name
end

local is_head = string.match(commit.ref_name, "HEAD") ~= nil
local is_head = string.match(commit.ref_name, "HEAD %->") ~= nil
local branch_highlight = is_head and "NeogitBranchHead" or "NeogitBranch"

if local_name and remote_name and vim.endswith(remote_name, local_name) then
Expand Down

0 comments on commit 91d4225

Please sign in to comment.