fix: none selection in telescope (#1119)
This commit is contained in:
parent
e02a21e738
commit
501a138ebc
@ -204,7 +204,7 @@ function FileSelector:telescope_ui(handler)
|
|||||||
else
|
else
|
||||||
local selection = action_state.get_selected_entry()
|
local selection = action_state.get_selected_entry()
|
||||||
|
|
||||||
handler(selection[1])
|
if selection and #selection > 0 then handler(selection[1]) end
|
||||||
end
|
end
|
||||||
|
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user