We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ce73e commit 1641357Copy full SHA for 1641357
lua/oil/adapters/ssh.lua
@@ -420,8 +420,7 @@ end
420
421
M.goto_file = function()
422
local url = M.parse_url(vim.api.nvim_buf_get_name(0))
423
- local word = vim.fn.expand("<cWORD>")
424
- local fname = vim.fn.matchlist(word, "\\v\\f+")[1]
+ local fname = vim.fn.expand("<cfile>")
425
local fullpath = fname
426
if not fs.is_absolute(fname) then
427
local pardir = vim.fs.dirname(url.path)
0 commit comments