Skip to content

Commit

Permalink
fix: don't break lualine if Grapple.tags returns an error
Browse files Browse the repository at this point in the history
  • Loading branch information
cbochs committed Mar 16, 2024
1 parent 6f4642d commit 7f6edfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lualine/components/grapple.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ function Component:update_status()
return
end

local tags = grapple.tags()
local tags, err = grapple.tags()
if not tags then
return err
end

local current = grapple.find({ buffer = 0 })

local output = {}
Expand Down

0 comments on commit 7f6edfe

Please sign in to comment.