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:
- 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
- Move the cursor to any of the 3rd, 4th, 5th, 6th and 7th line.
- Press C-s anywhere on that line. Watch the cursor jumping to column 0 of the 2nd line.
- Move the cursor to the 8th line.
- Press C-s anywhere on that line. The cursor does not move.
- The most interesting part happens when the cursor is in the 9th line, press C-s makes the cursor jumping to the 10th line.
- Press RET to select the 10th line and exit from
swiper.
- Then press C-s when in 10th line, watch the cursor jumping to the 4th line.
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:
swiper.