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

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)