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

search gets stuck (must move cursor manually for 'n' to work) #258

Open
mralusw opened this issue Dec 19, 2020 · 3 comments
Open

search gets stuck (must move cursor manually for 'n' to work) #258

mralusw opened this issue Dec 19, 2020 · 3 comments

Comments

@mralusw
Copy link
Contributor

mralusw commented Dec 19, 2020

MANPAGER=vimpager man ls
# type '/list' to start search, than 'n' a couple of times

I think it's because the pager tries to be too smart about placing the cursor, instead of putting it exactly on the search occurrence (or at least the exact line). In my case, the cursor starts off about 5 lines from the bottom (which is not a search occurrence), and stays there no matter how many times I press n. If I scroll manually (down arrow), the search starts moving again.

In any case, placing the cursor anywhere else but on the search occurrence makes searching frequent patterns kind of difficult, as there is no visual feedback when pressing n.

@mralusw
Copy link
Contributor Author

mralusw commented Dec 19, 2020

Attaching offending file. Also, this is Debian vim 2:8.1.0875-5 amd64, and the terminal is rows 34; columns 131

ls.txt

@rkitover
Copy link
Owner

I can reproduce this.

@rkitover
Copy link
Owner

It's been many years since I worked on the vimscript for this, and a lot of it is from the original less.vim, it's going to take me a while to figure this one out, but I'll try.

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