Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Nov 22, 2024
1 parent 25d09ff commit e9e8c3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/gitlinker/linker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ local git = require("gitlinker.git")
local path = require("gitlinker.path")
local giturlparser = require("gitlinker.giturlparser")
local async = require("gitlinker.commons.async")
local uri = require("gitlinker.commons.uri")

--- @return string?
local function _get_buf_dir()
Expand Down Expand Up @@ -93,7 +92,7 @@ local function make_linker(remote, file, rev)

if not file_provided then
local buf_path_on_root = path.buffer_relpath(root) --[[@as string]]
local buf_path_encoded = uri.encode(buf_path_on_root) --[[@as string]]
local buf_path_encoded = vim.uri_encode(buf_path_on_root) --[[@as string]]
-- logger.debug(
-- "|linker - Linker:make| root:%s, buf_path_on_root:%s",
-- vim.inspect(root),
Expand All @@ -106,7 +105,7 @@ local function make_linker(remote, file, rev)
end
file = buf_path_encoded
else
file = uri.encode(file)
file = vim.uri_encode(file)
end

-- logger.debug(
Expand Down

0 comments on commit e9e8c3f

Please sign in to comment.