Mercurial > vim
changeset 9064:a86103d4b356 v7.4.1817
commit https://github.com/vim/vim/commit/cefe4f994853c2d4866e2aa4ea3e3f36ab2fea13
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 4 21:49:19 2016 +0200
patch 7.4.1817
Problem: The screen is not updated if a callback is invoked when closing a
channel.
Solution: Invoke redraw_after_callback().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 04 May 2016 22:00:06 +0200 |
parents | 030b239e7b25 |
children | 3e45c2f5262b |
files | src/channel.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -2494,6 +2494,7 @@ channel_close(channel_T *channel, int in &rettv, 1, argv, 0L, 0L, &dummy, TRUE, channel->ch_close_partial, NULL); clear_tv(&rettv); + channel_need_redraw = TRUE; } --channel->ch_refcount; @@ -2503,6 +2504,12 @@ channel_close(channel_T *channel, int in partial_unref(channel->ch_close_partial); channel->ch_close_partial = NULL; + if (channel_need_redraw) + { + channel_need_redraw = FALSE; + redraw_after_callback(); + } + /* any remaining messages are useless now */ for (part = PART_SOCK; part <= PART_ERR; ++part) drop_messages(channel, part);