aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-24 08:34:00 +0200
committerGitHub <noreply@github.com>2019-09-24 08:34:00 +0200
commit445f2f409676f6e788861af439ce0b823aab3f37 (patch)
tree2adc407b7bae7f215b17639e22a115fc6147edd4 /src/nvim/event
parent6d213593ed0af948d23e9d0e8c6d993577344b48 (diff)
downloadrneovim-445f2f409676f6e788861af439ce0b823aab3f37.tar.gz
rneovim-445f2f409676f6e788861af439ce0b823aab3f37.tar.bz2
rneovim-445f2f409676f6e788861af439ce0b823aab3f37.zip
tui: flush ui buffer in tui_terminal_after_startup (#11083)
This avoids having a dummy event to tickle the main loop. Confirmed using `nvim -u NONE -c 'au FocusGained * q'` in tmux (with `:set -g focus-events on`): without the flushing it would only exit after pressing a key. Moves the flushing done recently in 3626d2107. `nvim -u NONE -cq` is still working (i.e. consuming the response for the terminal background query itself), and the flickering mentioned in 3626d2107 is reduced again. Reverts part of bfb21f3e0 (#7729).
Diffstat (limited to 'src/nvim/event')
-rw-r--r--src/nvim/event/loop.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/event/loop.c b/src/nvim/event/loop.c
index a01bbc9888..c2be472acd 100644
--- a/src/nvim/event/loop.c
+++ b/src/nvim/event/loop.c
@@ -162,10 +162,6 @@ size_t loop_size(Loop *loop)
return rv;
}
-void loop_dummy_event(void **argv)
-{
-}
-
static void async_cb(uv_async_t *handle)
{
Loop *l = handle->loop->data;