Skip to content

Commit

Permalink
fix: fixed possible nil error when showing marks
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 30, 2021
1 parent 423a50c commit b44fc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/which-key/plugins/marks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function M.run(trigger, mode, buf)
table.insert(items, {
key = key,
label = labels[key] or "",
value = value .. (line or file),
value = value .. (line or file or ""),
highlights = { { 1, #value - 1, "Number" } },
})
end
Expand Down

0 comments on commit b44fc09

Please sign in to comment.