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

mless N:x seems off-by-one. #261

Open
rnkn opened this issue Jul 9, 2024 · 5 comments
Open

mless N:x seems off-by-one. #261

rnkn opened this issue Jul 9, 2024 · 5 comments

Comments

@rnkn
Copy link

rnkn commented Jul 9, 2024

Hello,

mless appears to be off-by-one when issuing the N:x command.

To reproduce

$ mlist Maildir/ | mless
2:n
1:x

And then

2:x

Expected results

Navigation back to message 1.

Actual results

First the error

mless scan// (message 1 of 6)

And then

mless 1 (message 2 of 6)

mblaze v 1.2

@leahneukirchen
Copy link
Owner

Not sure I follow... :x goes to the first file in less, which is the //scan output.

So :x:n will move to the first message. N goes to the first unread message.

@rnkn
Copy link
Author

rnkn commented Jul 13, 2024

I'm using N as a placeholder for any number, so e.g. with a bunch of files open in less, 10:x goes to the 10th file, whereas with a bunch of messages open in mless 10:x goes to the 9th message. Is this intended?

@rnkn
Copy link
Author

rnkn commented Jul 13, 2024

Sorry, my first post is very unclear.

@leahneukirchen
Copy link
Owner

I think that's not avoidable, as the first file is the scan overview...

@rnkn
Copy link
Author

rnkn commented Jul 14, 2024

What about 0:x for the scan overview?

Edit: I see the 0:x already show the scan overview...

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

No branches or pull requests

2 participants