GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
When I have nowrapscan, I get this error:
Error detected while processing function Star_add..Add_keyword_search_generic
@ironcamel : thanks for the report. I believe this is fixed in the latest version. What I resorted to doing was temporarily do "set wrapscan" unconditionally, and then restore it to whatever its previous value was. I couldn't find a way to trap the error (which is treated differently than an exception in Vim) using vimscript programatically, and searching the web for that indicated that it was not possible.
In the future, we may wish to emulate the functionality of "*" and "#" using the more programmatic API, but this may mean getting many things wrong.
Please test (I'm closing this issue, so feel free to reopen if it doesn't work for you).
Just tested and it is fixed. Thanks!