diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-12-12 20:41:25 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-12-13 22:18:25 +0100 |
commit | ed92ece815e1f32259b3f0397476ff6ac92726e3 (patch) | |
tree | 5fa2c1231f2afe287f17eef9894dbba96c6637f4 /src/nvim/ui_bridge.c | |
parent | 6b51c72e0cc99c6c03c521f77793028cf63afd45 (diff) | |
download | rneovim-ed92ece815e1f32259b3f0397476ff6ac92726e3.tar.gz rneovim-ed92ece815e1f32259b3f0397476ff6ac92726e3.tar.bz2 rneovim-ed92ece815e1f32259b3f0397476ff6ac92726e3.zip |
tui: defer termcodes using a timer
With this implementation there is no "jank" during startup.
Using the main_loop in any fashion is janky. Using only the TUI loop
emits the termcodes too soon, or requires bad hacks like counting
tui_flush invocations (9 seems to work).
ref #7664
ref #7649
ref #7664
ref 27f9b1c7b029d8
Diffstat (limited to 'src/nvim/ui_bridge.c')
-rw-r--r-- | src/nvim/ui_bridge.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/ui_bridge.c b/src/nvim/ui_bridge.c index 324d821df5..0a69cf0ecb 100644 --- a/src/nvim/ui_bridge.c +++ b/src/nvim/ui_bridge.c @@ -42,7 +42,6 @@ UI *ui_bridge_attach(UI *ui, ui_main_fn ui_main, event_scheduler scheduler) rv->ui = ui; rv->bridge.rgb = ui->rgb; rv->bridge.stop = ui_bridge_stop; - rv->bridge.after_startup = ui_bridge_after_startup; rv->bridge.resize = ui_bridge_resize; rv->bridge.clear = ui_bridge_clear; rv->bridge.eol_clear = ui_bridge_eol_clear; @@ -107,16 +106,6 @@ static void ui_thread_run(void *data) bridge->ui_main(bridge, bridge->ui); } -static void ui_bridge_after_startup(UI *b) -{ - UI_BRIDGE_CALL(b, after_startup, 1, b); -} -static void ui_bridge_after_startup_event(void **argv) -{ - UI *ui = UI(argv[0]); - ui->after_startup(ui); -} - static void ui_bridge_stop(UI *b) { UIBridgeData *bridge = (UIBridgeData *)b; |