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

Freeze on trying to match /\s\+\%#\@<!$/ on a long line #164

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 5 comments
Closed

Freeze on trying to match /\s\+\%#\@<!$/ on a long line #164

GoogleCodeExporter opened this issue Aug 18, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Steps:

1. A very long line of HTML, f.e. repeat the following to make a single long 
line:

<td style="border-bottom windowtext 0.5pt solid; border-left windowtext;" 
class=abc align=right><font face=arial><font 
color=#ff0000><b>5</b></font></font></td>

2. Search for the pattern '\s\+\%#\@<!$'

Vim freezes hard and need to be interrupted with a ctrl+c.

Issue reproduced in GVim 7.4.9 on Windows.

The freeze happens with :set re=2 or 0. If :set re=1 it returns a no match 
instantly.

Original issue reported on code.google.com by harig...@gmail.com on 27 Aug 2013 at 5:34

@GoogleCodeExporter
Copy link
Author

I cannot reproduce the problem.
Perhaps you need to be more specific about the text?

Original comment by brammool...@gmail.com on 30 Aug 2013 at 10:16

@GoogleCodeExporter
Copy link
Author

Adding a file with the text. For me opening it and searching for the pattern 
/\s\+\%#\@<!$/ makes Vim freeze for a long time if :set re=0 or 2.

Original comment by harig...@gmail.com on 30 Aug 2013 at 5:14

Attachments:

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Just writing to add that I successfully reproduced the issue on terminal 
version 7.4.161 on OSX Mavericks (10.9). Starting with vim -u NONE stops the 
freezing, but it still hangs for about 10 seconds before resuming. In both 
tests I had re=0.

Original comment by HoweJ...@gmail.com on 8 Mar 2014 at 12:30

@GoogleCodeExporter
Copy link
Author

Fixed by 7.4.497

Original comment by chrisbr...@googlemail.com on 5 Nov 2014 at 6:39

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant