Skip to content

Commit

Permalink
fix(pickers/telescope): handle nil selection in open
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Nov 3, 2024
1 parent 1e687e3 commit 1794058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/octo/pickers/telescope/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ local function open(command)
elseif command == "tab" then
vim.cmd [[:tab sb %]]
end
utils.get(selection.kind, selection.repo, selection.value)
if selection then
utils.get(selection.kind, selection.repo, selection.value)
end
end
end

Expand Down

0 comments on commit 1794058

Please sign in to comment.