Skip to content
Snippets Groups Projects
Commit 57d338a4 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'small_fixes' into 'master'

Small fixes

annoying annoying backspace bug
parents d790c008 cdff5e02
No related branches found
No related tags found
No related merge requests found
......@@ -215,8 +215,10 @@ function _M:init()
game:unregisterDialog(self)
end,
_BACKSPACE = function()
_M.line = _M.line:sub(1, _M.line_pos - 1) .. _M.line:sub(_M.line_pos + 1)
_M.line_pos = util.bound(_M.line_pos - 1, 0, #_M.line)
if _M.line_pos > 0 then
_M.line = _M.line:sub(1, _M.line_pos - 1) .. _M.line:sub(_M.line_pos + 1)
_M.line_pos = _M.line_pos - 1
end
self.changed = true
end,
_DELETE = function()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment