Merge pull request #38 from endlesstravel/master

fix bug when input more than one character.
This commit is contained in:
vrld 2016-07-06 14:55:43 +02:00 committed by GitHub
commit 9d184831e2

View file

@ -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