diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-12-27 14:43:03 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-12-31 13:25:26 +0100 |
commit | 9fdcbbb4063daa125e420e0ffe9dae6801c264bc (patch) | |
tree | b388481d34e1900dec249e138a8fb39e1457a5a3 /src/nvim/ui.c | |
parent | 43e8ec92de9e0850e7d202cb7ff9051bc408447e (diff) | |
download | rneovim-9fdcbbb4063daa125e420e0ffe9dae6801c264bc.tar.gz rneovim-9fdcbbb4063daa125e420e0ffe9dae6801c264bc.tar.bz2 rneovim-9fdcbbb4063daa125e420e0ffe9dae6801c264bc.zip |
feat(tui): graduate the +tui feature
This was previously disabled due to build issues on windows.
Any reasonable platform can now be expected to have the necessary
interfaces to build and run the TUI subsystem.
Runtime quality issues of using the TUI (on any new platform) are not
relevant here. Just run Nvim in an external UI instead of the TUI as always.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index f40d8b52ca..33c7d0c1fe 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -128,32 +128,16 @@ static UI *builtin_ui = NULL; void ui_free_all_mem(void) { kv_destroy(call_buf); -# ifdef FEAT_TUI if (builtin_ui) { tui_free_all_mem(builtin_ui); builtin_ui = NULL; } -# endif } #endif void ui_builtin_start(void) { -#ifdef FEAT_TUI builtin_ui = tui_start(); -#else - fprintf(stderr, "Nvim headless-mode started.\n"); - size_t len; - char **addrs = server_address_list(&len); - if (addrs != NULL) { - fprintf(stderr, "Listening on:\n"); - for (size_t i = 0; i < len; i++) { - fprintf(stderr, "\t%s\n", addrs[i]); - } - xfree(addrs); - } - fprintf(stderr, "Press CTRL+C to exit.\n"); -#endif } UI *ui_get_by_index(int idx) |