Line editing in pure LuaJIT