diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 150d728..160b744 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -529,7 +529,7 @@ function Picker:find() self:reset_selection() self.original_win_id = a.nvim_get_current_win() - self.original_cword = vim.fn.expand "" + _, self.original_cword = pcall(vim.fn.expand, "") -- User autocmd run it before create Telescope window vim.api.nvim_exec_autocmds("User", { pattern = "TelescopeFindPre" })