fix bug when input more than one character.
This commit is contained in:
parent
3fd6a6aecd
commit
3171286c1f
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ return function(core, input, ...)
|
|||
if char ~= "" then
|
||||
local a,b = split(input.text, input.cursor)
|
||||
input.text = table.concat{a, char, b}
|
||||
input.cursor = input.cursor + 1
|
||||
input.cursor = input.cursor + utf8.len(char)
|
||||
end
|
||||
|
||||
-- text editing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue