backspace
[?]
May 2, 2022, 3:28 PM
6PUNJS5BSLTYMYMN4JFD7YDEGVQLM5PGAT7PQIG5NIAKLTM5T4PQCDependencies
Change contents
- edit in main.lua at line 2
local utf8 = require 'utf8' - edit in main.lua at line 39[4.555][2.225]
elseif chord == 'backspace' thenif #lines > 1 and lines[#lines] == '' thentable.remove(lines)elselocal byteoffset = utf8.offset(lines[#lines], -1)if byteoffset thenlines[#lines] = string.sub(lines[#lines], 1, byteoffset-1)endend