divineprog/mobilelua — Issue #1: LuaLive Editor/Client: "Run selection" sometimes fails when there is no space at end of line
Author: divineprog
Created: 2011-12-07 15:10:42+00:00
State: open

Problem:

In LuaLiveClient, when you evaluate code using "Run selection" that has no space at end, you sometimes get an error.

For example:

return 22

gives the error:

Lua Result: [string "return 22"]:1: malformed number near '22ÿ'

When you put a space at the end of the line, or a newline, and include that in the selection, evaluation is successful.

But it seems as if it is not just the last character that is missing, as you would first think, because this works:

return (22)

Puzzling!