fix: none selection in telescope (#1119)

This commit is contained in:
yetone 2025-01-23 11:56:57 +08:00 committed by GitHub
parent e02a21e738
commit 501a138ebc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,7 @@ function FileSelector:telescope_ui(handler)
else
local selection = action_state.get_selected_entry()
handler(selection[1])
if selection and #selection > 0 then handler(selection[1]) end
end
actions.close(prompt_bufnr)