Charles Campbell wrote:
> 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.
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.
-- Dominique
--
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
diff -r 6cee3bf00495 src/screen.c
--- a/src/screen.c Tue Jul 20 18:44:27 2010 +0200
+++ b/src/screen.c Tue Jul 20 22:20:35 2010 +0200
@@ -4378,6 +4378,7 @@
#ifdef FEAT_CONCEAL
if ( wp->w_p_conc > 0
+ && !area_highlighting
&& (lnum != wp->w_cursor.lnum || curwin != wp)
&& (syntax_flags & HL_CONCEAL) != 0)
{