Skip to content

Commit

Permalink
fix: missing symbol on navigation shouldn't error (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Sep 22, 2023
1 parent a2368d1 commit 1175f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/aerial/navigation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ M.select = function(opts)

local item = data.get_or_create(0):item(opts.index)
if not item then
error(string.format("Symbol %s is outside the bounds", opts.index))
-- No symbol found at location. Can happen if the source buf has no symbols.
return
end
local bufnr, _ = util.get_buffers()
Expand Down

0 comments on commit 1175f79

Please sign in to comment.