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

swiper: point jumps to the first line of that the current line is a substring #290

Closed
zhaojiangbin opened this Issue Nov 15, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@zhaojiangbin

When in buffer there is another line of which the current line is a sub-string, running swiper (C-s) makes the cursor jumping to that line, instead of staying in the current one.

To reproduce in the scratch buffer:

  1. Enter the following 10 lines, note the leading spaces in the last two lines:
zero
one two three
one
two
one two
three
one two three
one three
  two
 two
  1. Move the cursor to any of the 3rd, 4th, 5th, 6th and 7th line.
  2. Press C-s anywhere on that line. Watch the cursor jumping to column 0 of the 2nd line.
  3. Move the cursor to the 8th line.
  4. Press C-s anywhere on that line. The cursor does not move.
  5. The most interesting part happens when the cursor is in the 9th line, press C-s makes the cursor jumping to the 10th line.
  6. Press RET to select the 10th line and exit from swiper.
  7. Then press C-s when in 10th line, watch the cursor jumping to the 4th line.

@zhaojiangbin zhaojiangbin changed the title from swiper: point jumps to the first line of that the current line is a substring of to swiper: point jumps to the first line of that the current line is a substring Nov 15, 2015

@abo-abo abo-abo closed this in c4c1878 Nov 15, 2015

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Nov 15, 2015

Owner

Thanks, this annoyance should be gone now.

Owner

abo-abo commented Nov 15, 2015

Thanks, this annoyance should be gone now.

@zhaojiangbin

This comment has been minimized.

Show comment
Hide comment
@zhaojiangbin

zhaojiangbin Nov 16, 2015

Verified. Thanks.

Verified. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment