diff options
| author | Ryan Blonna <n0.b741n37@gmail.com> | 2023-01-22 19:19:49 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-22 09:19:49 +0100 |
| commit | 4b4db1ff7dbedc95975c3bd2a2ba8d2bdf5d6c46 (patch) | |
| tree | b0616418ac4af93eba709d184b5729940e5ea7a8 /lua/telescope/actions | |
| parent | 83eb2f9756f1100bf191e2ed9837b9681eb60629 (diff) | |
fix: escape filename used in drop commands (#2339)
Diffstat (limited to 'lua/telescope/actions')
| -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 11d379b..6e12907 100644 --- a/lua/telescope/actions/set.lua +++ b/lua/telescope/actions/set.lua @@ -83,7 +83,7 @@ do if command ~= "drop" and command ~= "tab drop" then vim.cmd(string.format("%s %d", command, bufnr)) else - vim.cmd(string.format("%s %s", command, vim.api.nvim_buf_get_name(bufnr))) + vim.cmd(string.format("%s %s", command, vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr)))) end end end |
