Skip to content
This repository was archived by the owner on Aug 4, 2026. It is now read-only.
This repository was archived by the owner on Aug 4, 2026. It is now read-only.

Clicking in file copied from pastebin crashes editor #2934

Description

@FreddieRa

Loading the file, running it, and editing only using keyboard all works fine, however if you click somewhere in the file you are given the error:

bad argument #1 (string expected got nil):
stack traceback:
[C]: in function 'error'
machine:631: in function machine:618
(...tail calls...)
/bin/edit.lua:224: in upvalue 'setCursor'
/bin/edit.lua:620: in local 'onClick'
/bin/edit.lua:673: in main chunk
(...tail calls...)
[C]: in function 'xpcall'
machine:751: in global 'xpcall'
/lib/process.lua:63: in function </lib/process.lua:59>

This also doesn't clear the screen, so it gets meshed with whatever code you were looking at.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions