Skip to content

Commit

Permalink
fix: nil check entry.path
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed Jul 29, 2024
1 parent 0319134 commit 2b883ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/neorg/insert_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ return function(opts)
lnum = entry.line,
file = entry.file and tostring(entry.file) or nil,
linkable = entry.linkable,
path = entry.path:tostring(),
path = (entry.path and tostring(entry.path)) or vim.api.nvim_buf_get_name(0),
}
end,
}),
Expand Down

0 comments on commit 2b883ab

Please sign in to comment.