fix: progress component changes size while scrolling (#986)

Fixes https://github.com/nvim-lualine/lualine.nvim/issues/849
This commit is contained in:
_rs 2023-03-30 07:16:42 +03:00 committed by GitHub
parent 092f2497f0
commit 0695853055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ local function progress()
elseif cur == total then
return 'Bot'
else
return math.floor(cur / total * 100) .. '%%'
return string.format('%2d%%%%', math.floor(cur / total * 100))
end
end