Skip to content

Commit 1641357

Browse files
committed
fix: more correct gf binding for ssh files
1 parent 69ce73e commit 1641357

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/oil/adapters/ssh.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ end
420420

421421
M.goto_file = function()
422422
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]
423+
local fname = vim.fn.expand("<cfile>")
425424
local fullpath = fname
426425
if not fs.is_absolute(fname) then
427426
local pardir = vim.fs.dirname(url.path)

0 commit comments

Comments
 (0)