Eric Biggers wrote:
> Following patch 7.4.1748 (date: 2016-04-16), vim enters an infinite loop when
> executing the 'gd' command. This is easy to reproduce. For example, create a
> file "test.c" containing the following contents:
>
> void f(int x)
> {
> return x;
> }
>
> and use the 'gd' command while the cursor is over the x in the function body.
>
> The bug is that nv_gd() was changed to pass the SEARCH_START flag to
> find_decl(), causing searches to always start at the beginning of the line.
> However, find_decl() assumes that it can search incrementally from where it
> left
> off. As a result, find_decl() enters an infinite loop where it repeatedly
> searches for the pattern, never advancing to a new line.
>
> For now my only suggestion is to revert the patch.
Thanks for reporting the problem. I'll add a test for this and fix the
problem.
--
>From "know your smileys":
|-( Contact lenses, but has lost them
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.