Dominique Pellé wrote:

> >> Hi
> >>
> >> Vim-7.3b (2361:6cee3bf00495) freezes and use 100% of
> >> the CPU when I do this:
> >>
> >> 1) Download 3 sample files:
> >>
> >> $ wget  http://dominique.pelle.free.fr/bug-vim-freeze/1
> >> $ wget  http://dominique.pelle.free.fr/bug-vim-freeze/2
> >> $ wget  http://dominique.pelle.free.fr/bug-vim-freeze/3
> >>
> >> 2) use the following minimalistic ~/.vimrc:
> >>
> >> $ cat ~/.vimrc
> >> syntax on
> >> filetype on
> >> filetype plugin on
> >>
> >> 3) Start vim in diff mode as follows:
> >>
> >> $ vim -d -O 1 2 3
> >>
> >> 4) Resize the terminal (making it bigger) or maximize the terminal
> >>
> >> Observe that beyond certain horizontal size, Vim freezes and
> >> uses 100% of the CPU.  CTRL-C does not help.
> >>
> >> It also happens with gvim GTK2.
> >>
> >> Bug does not happen with Vim-7.2.446. I'll try a bisection later
> >> when I have time to see when regression was introduced.
> >>
> >
> > I downloaded and built vim 7.3b; however, I hadn't installed it as yet.  No
> > freeze with 7.3a.
> >
> >
> > OK, now let's try vim 7.3b: VIM - Vi IMproved 7.3b BETA (2010 Jul 18,
> > compiled Jul 20 2010 12:11:47)
> >
> > No freeze.  I then repeated this with Centos 5.2 -- and still no freeze.
> >
> > Regards,
> > Chip Campbell
> 
> 
> Strange that you can't reproduce it and I can.

It depends on the exact column width.  When starting in an 80 column
terminal it hangs for me when resizing to 125 columns.

> Anyway, I did a bisection and found the checkin where
> the regression started:
> 
> 2348:586a459f3980   FREEZE (BUG)
> 2347:8878a9f8db87   OK
> 
> So the change which introduces the bug is this one:
> 
> changeset:   2348:586a459f3980
> branch:      vim73
> user:        Bram Moolenaar <[email protected]>
> date:        Mon Jul 19 20:13:22 2010 +0200
> files:       runtime/doc/options.txt src/screen.c
> description:
> Never hide text for conceal in cursor line.  Do hide when there is
> highlighting.
> 
> 
> Attached patch fixes it for me.

But this disables concealing for changed lines.  I found another
solution, I'll push it now.

-- 
ARTHUR:   Ni!
BEDEVERE: Nu!
ARTHUR:   No.  Ni!  More like this. "Ni"!
BEDEVERE: Ni, ni, ni!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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

Raspunde prin e-mail lui