To: vim_dev@googlegroups.com Subject: Patch 7.4.1817 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1817 Problem: The screen is not updated if a callback is invoked when closing a channel. Solution: Invoke redraw_after_callback(). Files: src/channel.c *** ../vim-7.4.1816/src/channel.c 2016-05-01 14:22:12.363965120 +0200 --- src/channel.c 2016-05-04 21:21:00.511455759 +0200 *************** *** 2494,2499 **** --- 2494,2500 ---- &rettv, 1, argv, 0L, 0L, &dummy, TRUE, channel->ch_close_partial, NULL); clear_tv(&rettv); + channel_need_redraw = TRUE; } --channel->ch_refcount; *************** *** 2503,2508 **** --- 2504,2515 ---- 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); *** ../vim-7.4.1816/src/version.c 2016-05-01 23:05:49.674360477 +0200 --- src/version.c 2016-05-04 21:22:01.286802107 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1817, /**/ -- Living on Earth includes an annual free trip around the Sun. /// Bram Moolenaar -- Bram@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 ///