searchpair(pos) might return an invalid value in case a timeout is used.
This can be triggered using searchpairpos('(', '', ')', 'bnW', '', 1, 500)
(not reliably, but very often from line 1818 of
https://github.com/vim-jp/vim-vimlparser/blob/9eb216ff880d7b7fee036f096b6ad822651ea4db/py/vimlparser.py#L1818).
This is a WIP PR to check if any existing tests are failing.
For Neovim: neovim/neovim#7852
https://github.com/vim/vim/pull/2552
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
can you please write a test for the change?