edamagit icon indicating copy to clipboard operation
edamagit copied to clipboard

Incorrect cursor movement after actions in status buffer

Open dandavison opened this issue 4 years ago • 0 comments

An operation such as k in the status buffer moves the cursor in a way that I think isn't correct:

Using | to represent cursor location, suppose we start in this state:

Untracked files (4)
|diff
fg.svg
test
test2

Now I issue k to trash the file named "diff", and confirm that I want to trash it.

What I am claiming should happen is this:

Untracked files (4)
|fg.svg
test
test2

But instead what happens is this:

Untracked files (3)|
fg.svg
test
test2

If edamagit behaved as I am claiming that it should, then we would be able to issue a command like k multiple times in succession, to trash each of the files.

In contrast, with the current behavior, the first k has a different effect (offer to trash one file) from the second k (offer to trash all files).

dandavison avatar Aug 23 '21 17:08 dandavison