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

[BUG] <c-o> creates jump points instead of jumping backwards #5066

Open
lobre opened this issue Dec 27, 2023 · 0 comments
Open

[BUG] <c-o> creates jump points instead of jumping backwards #5066

lobre opened this issue Dec 27, 2023 · 0 comments
Labels

Comments

@lobre
Copy link
Contributor

lobre commented Dec 27, 2023

Version of Kakoune

83fb65a

Reproducer

  1. Start an empty kakoune with kak -n.
  2. <c-s> save the beginning of the file to the jump list (so first * is selected and saved).
  3. w to select the next word.
  4. <c-s> to save again (it will save with the full *** selected).
  5. w to to next word again (just to move away from the previous selection, any direction would do).

At that point, I am supposed to have in jumplist:

  • #0: first * at the beginning of the file.
  • #1: first word (*** ).

Now, doing <c-o> goes back to #1 and selects again *** . Until then, everything is fine. However, from now the bug will start to appear.

So just try to move in any direction (such as j to go to the second line), and press <c-o> again, and it will create a new entry in the jumplist instead of going back to #1 again.

And you can keep reproducing. Move again, do <c-o>, new entry again, and so on.

Outcome

It adds new jump points instead of going back to the last one.

Expectations

Go back to #1(which is the latest), and if I do again <c-o> from #1, go back to #0.

Additional information

No response

@lobre lobre added the bug label Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant