Skip to content

Commit

Permalink
fix: more correct gf binding for ssh files
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 15, 2023
1 parent 69ce73e commit 1641357
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/oil/adapters/ssh.lua
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ end

M.goto_file = function()
local url = M.parse_url(vim.api.nvim_buf_get_name(0))
local word = vim.fn.expand("<cWORD>")
local fname = vim.fn.matchlist(word, "\\v\\f+")[1]
local fname = vim.fn.expand("<cfile>")
local fullpath = fname
if not fs.is_absolute(fname) then
local pardir = vim.fs.dirname(url.path)
Expand Down

0 comments on commit 1641357

Please sign in to comment.