typo correction
This commit is contained in:
@@ -333,12 +333,12 @@ function string:wcswidth(idx)
|
|||||||
idx = idx or 1
|
idx = idx or 1
|
||||||
while idx <= #self do
|
while idx <= #self do
|
||||||
if bit.band(self:byte(idx), 0xc0) ~= 0x80 then
|
if bit.band(self:byte(idx), 0xc0) ~= 0x80 then
|
||||||
size = size + self:wcwidth(idx)
|
width = width + self:wcwidth(idx)
|
||||||
end
|
end
|
||||||
idx = idx + 1
|
idx = idx + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
return size
|
return width
|
||||||
end
|
end
|
||||||
|
|
||||||
-- return module: string
|
-- return module: string
|
||||||
|
Reference in New Issue
Block a user