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

Bookmark loses track of correct line #10

Closed
jasondunsmore opened this issue Sep 24, 2015 · 1 comment
Closed

Bookmark loses track of correct line #10

jasondunsmore opened this issue Sep 24, 2015 · 1 comment

Comments

@jasondunsmore
Copy link

Follow these steps and the bookmark will lose track of the correct line number to jump to:

  1. Create a new file with 4 lines
  2. Put a bookmark on lines 1 and 3
  3. With the cursor at the beginning of line 3, insert a newline
  4. Call bm-next and bm-previous to see that the second bookmark is now on the unmarked line. Also, notice that wrapping doesn't work with bm-next. It only works with bm-previous.
@joodland
Copy link
Owner

joodland commented Nov 5, 2015

The marker stored on the overlay is not updated when inserting a newline at the start of a bookmark. Bug in Emacs?

This resulted in jumping to a position just outside (the line above) the bookmark. The bug is only visible when "bm-goto-position" is true and the bookmark was created standing in column 0.

The solution was to only jump to positions when it is between the overlay start and end.

@joodland joodland closed this as completed Nov 5, 2015
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