Merge pull request #74 from kyazdani42/fix/space-between-icon-filename

fix space between icon and filename with special file
This commit is contained in:
Kiyan Yazdani 2020-08-03 12:39:07 +02:00 committed by GitHub
commit 9a55ea9464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,7 @@ local function update_draw_data(tree, depth, markers)
local git_icons
if special[node.name] then
icon = icon_state.icons.default
if icon ~= "" then icon = icon.." " end
git_icons = get_git_icons(node, index, offset, 0)
table.insert(hl, {'LuaTreeSpecialFile', index, offset+#git_icons, -1})
else