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

[WIP] Fix passed timeout with backwards searchpair #7852

Closed
wants to merge 3 commits into from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jan 15, 2018

searchpair(pos) might return an invalid value in case a timeout is used.

This can be triggered using searchpairpos('(', '', ')', 'bnW', '', 1, 500).

This is a WIP PR to check if any existing tests are failing.

searchpair(pos) might return an invalid value in case a timeout is used.

This can be triggered using `searchpairpos('(', '', ')', 'bnW', '', 1,
500)`.
tm
)) == 0)
|| (nmatched = vim_regexec_multi(
&regmatch, hjwin, buf, lnum + matchpos.lnum, matchcol,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's hjwin?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A typo.. fixed.

@justinmk justinmk added the has:vim-patch issue is fixed in vim and patch needs to be ported label Feb 9, 2018
@blueyed
Copy link
Contributor Author

blueyed commented Feb 10, 2018

Closing in favor of #7993.

@blueyed blueyed closed this Feb 10, 2018
@blueyed blueyed deleted the fix-searchpair-timeout branch February 10, 2018 21:47
@jszakmeister jszakmeister removed the WIP label Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has:vim-patch issue is fixed in vim and patch needs to be ported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants