Christian Brabandt wrote:

> > > > > On Mi, 14 Dez 2011, lith wrote:
> > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > Am Dienstag, 13. Dezember 2011 20:24:01 UTC+1 schrieb Christian 
> > > > > > Brabandt:
> > > > > > >
> > > > > > > Can you provide a minimal example of the crash?
> > > > > > 
> > > > > > 
> > > > > > Since I don't own a Mac, I cannot give an example for the crash, 
> > > > > > but the 
> > > > > > following example triggers the problem described above. I assume 
> > > > > > this was 
> > > > > > also what caused MacVim to crash since not placing a sign solved 
> > > > > > the 
> > > > > > problem.
> > > > > > 
> > > > > > gvim -u vimrc.test
> > > > > > 
> > > > > > where vimrc.test is
> > > > > > 
> > > > > > sign define Foo text=F
> > > > > > sign place 1 line=1 name=Foo buffer=1
> > > > > 
> > > > > Sorry, I forgot about this mail.
> > > > > 
> > > > > I see that this triggers redrawing the terminal, also the gui should 
> > > > > be 
> > > > > used. I think, this patch fixes it:
> > > > 
> > > > What does this patch fix?
> > > 
> > > I thought the problem was, that although the GUI will start, it still 
> > > draws the signs on the terminal.
> > 
> > I also see it draw "~" lines.
> 
> Yes.
> 
> > > > I can see some messing of the terminal when using "vim -u vimrc.test".
> > > > Your patch only changes something for the GUI, it appears.  But the
> > > > problem also exists in the non-GUI version.
> > > 
> > > Yes, I was just looking at the GUI.
> > 
> > We should have a fix that also fixes it for the terminal.  Can you
> > reproduce it with vim instead of gvim?
> 
> This should fix it for gvim and vim
> 
> diff --git a/src/screen.c b/src/screen.c
> --- a/src/screen.c
> +++ b/src/screen.c
> @@ -765,8 +765,13 @@
>      }
>  
>      /* Return when there is nothing to do or screen updating already
> -     * happening. */
> -    if (!doit || updating_screen)
> +     * happening or we are starting up. */
> +    if (!doit || updating_screen
> +#ifdef FEAT_GUI
> +           || gui.starting
> +#endif
> +           || starting
> +           )
>         return;
>  
>      /* update all windows that need updating */

Thanks!  I'll verify it works and include it.

-- 
It is illegal for a driver to be blindfolded while operating a vehicle.
                [real standing law in Alabama, United States of America]

 /// 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

Raspunde prin e-mail lui