Skip to content

Commit

Permalink
fix(branchState): add spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Feb 12, 2024
1 parent 4c714db commit 5d38f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/tinygit/statusline/branch-state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ local function getBranchState(bufnr)

local ahead = currentBranchInfo:match("ahead (%d+)")
local behind = currentBranchInfo:match("behind (%d+)")
if ahead then ahead = "󰶣" .. ahead end
if behind then behind = "󰶡" .. behind end
local text = table.concat({ ahead, behind }, " ") or ""
if ahead then ahead = "󰶣 " .. ahead end
if behind then behind = "󰶡 " .. behind end
local text = table.concat({ ahead, behind }, " ") or ""
if ahead and behind then text = "󰃻 " .. text end

return text
Expand Down

0 comments on commit 5d38f40

Please sign in to comment.