javigon / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Fixed by 7.4.497

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