Christian Brabandt wrote:

> On Mon, July 1, 2013 17:45, Ingo Karkat wrote:
> > Hello Vim developers,
> >
> > I noticed a regression:
> >
> > $ vim -N -u NONE
> > :echo "foo"
> > " The intro message is cleared, the (now empty) UI does not show "foo".
> > " Expected behavior: The intro message stays visible, the command-line
> > shows "foo".
> >
> > This happens with any command that echoes a single line, e.g. also with
> > :set ic?, or :nmap. Only the very first command (output) is affected;
> > subsequent commands (after the intro message was cleared) show up fine.
> > I see this in Vim 7.3.1280 (huge build on Ubuntu 13.04/x64), but not in
> > Vim 7.3.712. It also doesn't happen in GVIM, only in the terminal UI.
> 
> I don't see this for vim -u NONE -N (and I suspect, this is terminal
> related),

Yes, AFAIK it only happens when the termresponse causes a redraw.  For
xterm that is when t_CO is received.

> but for me this happens, because I have a plugin, that resets
> some highlighting groups whenever the statusline is drawn. This triggers
> a do_highlight() call, which in turn calls redraw_win_later() and resets
> must_redraw, although it has been set to zero earlier in update_screen()

Hmm, changing highlighting while busy redrawing is bad.  I'm not sure if
we would care to make this work.  Generally it would require a redraw.
Vim doesn't know only the status line would be affected.

> This patch fixes it for me, but I am not sure, this also fixes your
> issue:

This basically ignores the problem: If anything sets must_redraw while
redrawing it gets discarded.  I suspect this will cause trouble in some
situations.  There already is a flag to prevent recursion, weird
things do happen.  E.g. a resize while redrawing.


-- 
FATHER:    You only killed the bride's father - that's all -
LAUNCELOT: Oh dear, I didn't really mean to...
FATHER:    Didn't mean to?  You put your sword right through his head!
LAUNCELOT: Gosh - Is he all right?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to