Skip to content

Commit

Permalink
fix: display git status for paths including whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
amedama41 committed Sep 10, 2023
1 parent 65371fe commit 5dbe2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/vfiler/libs/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ local function parse_git_status(rootpath, result)
local splitted = vim.list.from(vim.fn.split(rpath, ' -> '))
rpath = splitted[#splitted]
-- Removing: extra characters
rpath = rpath:gsub('^"', ''):gsub('^"', '')
rpath = rpath:gsub('^"', ''):gsub('"$', '')
return core.path.join(rootpath, rpath),
{ us = status:sub(1, 1), them = status:sub(2, 2) }
end
Expand Down

0 comments on commit 5dbe2af

Please sign in to comment.