Skip to content

Commit 20c2f2f

Browse files
committed
fix: convert_octal_to_utf8 had pcall return backwards
1 parent 134a9b3 commit 20c2f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/git/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454

5555
M.octal_to_utf8 = function(text)
5656
-- git uses octal encoding for utf-8 filepaths, convert octal back to utf-8
57-
local converted, success = pcall(string.gsub, text, "\\([0-7][0-7][0-7])", convert_octal_char)
57+
local success, converted = pcall(string.gsub, text, "\\([0-7][0-7][0-7])", convert_octal_char)
5858
if success then
5959
return converted
6060
else

0 commit comments

Comments
 (0)