mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
fix(lua): search.lua autoload failed after lua 5.5 (#1503)
Removed unnecessary increment of 'i' in the loop.
This commit is contained in:
@@ -21,7 +21,6 @@ local function get_pos( text, char )
|
||||
local first_char = tmp:sub( 1, utf8.offset( tmp, 2 ) - 1 )
|
||||
if first_char == char then pos[i] = true end
|
||||
tmp = tmp:gsub( '^' .. first_char, '' )
|
||||
i = i + 1
|
||||
end
|
||||
end
|
||||
return pos
|
||||
|
||||
Reference in New Issue
Block a user