From 59f12e7d618340df181988488ec99f172c901d19 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 28 Nov 2016 01:57:07 +0100 Subject: ui_detach: Do not redraw during teardown/exit. --- src/nvim/terminal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/terminal.c') diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index bd7b9fc58f..b0104a4e4c 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -977,9 +977,7 @@ static void refresh_terminal(Terminal *term) // event. static void refresh_timer_cb(TimeWatcher *watcher, void *data) { - if (exiting) { - // bad things can happen if we redraw when exiting, and there's no need to - // update the buffer. + if (exiting) { // Cannot redraw (requires event loop) during teardown/exit. goto end; } Terminal *term; -- cgit