Skip to content

First command skipped when iterating down history of commands #4

@brianchoon

Description

@brianchoon

I have one student in the list at the start.

I did these commands in this order:
edit 1 /name A
edit 1 /name B
edit 1 /name C
edit 1 /name D

Now, when I toggled through the history of commands by pressing the up button, this is what I see (in order, per up button clicked):
edit 1 /name D
edit 1 /name C
edit 1 /name B
edit 1 /name A
(i.e. blank)

Now, I go through the history in the opposite direction, but this is what I see (in order, per down button clicked):
edit 1 /name B
edit 1 /name C
edit 1 /name D
(i.e. blank)

As you can see, the very first command, edit 1 /name A, was not displayed.

To fix this bug, I believe they may be an issue with how you're keeping track of the command index in the history. It is worth having a look!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions