Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
swiper: ivy-yank-word less useful when there are multiple matches in the current line #314
2- Place the cursor on the second 'S' - one that following the '='.
With case folded, this can happen even more often in C and C++ code.
There is a workaround: at the prompt type "_f", instead of pressing
Well, the change does fix the issue for M-j (or whatever key that
But the point still jumps to the first match when either the pattern "Some" is entered manually on prompt or
* swiper.el (swiper--current-line): (swiper--current-match-start): New defvar. (swiper--init): Update. (swiper--update-input-ivy): Don't move to line NUM if `swiper--current-line' is equal to NUM. Later, store NUM in `swiper--current-line' to avoid calling `line-number-at-pos'. Additionally store `swiper--current-match-start' - it's necessary to move there before searching for the regexp, since the point currently is after the old regexp. Fixes #314