Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RENUMBER should be able to reorder lines #181

Open
dansanderson opened this issue Nov 15, 2024 · 1 comment
Open

RENUMBER should be able to reorder lines #181

dansanderson opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dansanderson
Copy link
Collaborator

dansanderson commented Nov 15, 2024

Test Environment (required)
You can use MEGA65INFO to retrieve this.

  • Platform: MEGA65
  • ROM Release: 920409

Describe the bug

10 A
20 B
30 C
100 D
110 E
120 F
RENUMBER 200,10,10-99

fails with Can't Continue Error.

The reason is unclear. A user might accept that RENUMBER has certain restrictions to prevent it from, say, deleting a line accidentally. And perhaps a user could understand that RENUMBER can't interleave new lines with old ones. But this command is just trying to move a region of lines to the end of the program, which seems like a common use case.

Using an unbounded range works (10-) works, but this is just renumbering everything, not reordering anything. If RENUMBER is incapable of reordering lines, we should at least document this, or rewrite RENUMBER entirely to be more useful.

RENUMBER 50,10,10-99 works, but this request does not reorder the lines.

@dansanderson dansanderson added the new New report, not classified yet label Nov 15, 2024
@dansanderson dansanderson changed the title RENUMBER fails unintuitively with line ranges RENUMBER should be able to reorder lines Nov 15, 2024
@dansanderson dansanderson added enhancement New feature or request and removed new New report, not classified yet labels Nov 15, 2024
@snoopy-f64
Copy link

The command is called RENUMBER, not REARRANGE! ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants