diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions/set.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/actions/set.lua b/lua/telescope/actions/set.lua index dc04040..320addd 100644 --- a/lua/telescope/actions/set.lua +++ b/lua/telescope/actions/set.lua @@ -131,7 +131,7 @@ action_set.edit = function(prompt_bufnr, command) -- prevents restarting lsp server if vim.api.nvim_buf_get_name(0) ~= filename or command ~= "edit" then filename = Path:new(vim.fn.fnameescape(filename)):normalize(vim.loop.cwd()) - vim.cmd(string.format("%s %s", command, filename)) + pcall(vim.cmd, string.format("%s %s", command, filename)) end end |
