Skip to content

Commit 712b7a3

Browse files
committed
add the commentary regarding utf-8 first symbol match
1 parent a7312c3 commit 712b7a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvim-tree/renderer/components/padding.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function M.setup(opts)
100100
if #symbol == 0 then
101101
return " "
102102
end
103+
-- return the first character from the UTF-8 encoded string; we may use utf8.codes from Lua 5.3 when available
103104
return symbol:match "[%z\1-\127\194-\244][\128-\191]*"
104105
end
105106

0 commit comments

Comments
 (0)