fix: correctly parse filenames with special chars in git_status (#2296)
This commit is contained in:
committed by
GitHub
parent
0326347eba
commit
b24fdfdb25
@@ -1352,7 +1352,13 @@ function make_entry.gen_from_git_status(opts)
|
||||
if entry == "" then
|
||||
return nil
|
||||
end
|
||||
local mod, file = string.match(entry, "(..).*%s[->%s]?(.+)")
|
||||
|
||||
local mod, file = entry:match "^(..) (.+)$"
|
||||
-- Ignore entries that are the PATH in XY ORIG_PATH PATH
|
||||
-- (renamed or copied files)
|
||||
if not mod then
|
||||
return nil
|
||||
end
|
||||
|
||||
return setmetatable({
|
||||
value = file,
|
||||
|
||||
Reference in New Issue
Block a user