Skip to content

Commit

Permalink
Merge pull request #662 from legobeat/telescope-handle-nil-selection
Browse files Browse the repository at this point in the history
fix(pickers/telescope): handle nil selection in open
  • Loading branch information
Alvaro Muñoz authored Nov 4, 2024
2 parents 1e687e3 + 1794058 commit 407fabc
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 407fabc

Please sign in to comment.