Skip to content

Commit

Permalink
fix(grapple): ensure tag has cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbochs committed Mar 8, 2023
1 parent bb13e83 commit 77286e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/portal/builtin/grapple.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ local function generator(opts, settings)
end

iter = iter:map(function(v, _)
if not v.cursor then
return nil
end

local buffer
if vim.fn.bufexists(v.file_path) ~= 0 then
buffer = vim.fn.bufnr(v.file_path)
Expand Down

0 comments on commit 77286e3

Please sign in to comment.