mobilelua icon indicating copy to clipboard operation
mobilelua copied to clipboard

LuaLive Editor/Client: "Run selection" sometimes fails when there is no space at end of line

Open mikaelkindborg opened this issue 13 years ago • 0 comments

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!

mikaelkindborg avatar Dec 07 '11 15:12 mikaelkindborg