aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-12-27 14:43:03 +0100
committerbfredl <bjorn.linse@gmail.com>2022-12-31 13:25:26 +0100
commit9fdcbbb4063daa125e420e0ffe9dae6801c264bc (patch)
treeb388481d34e1900dec249e138a8fb39e1457a5a3 /src
parent43e8ec92de9e0850e7d202cb7ff9051bc408447e (diff)
downloadrneovim-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')
-rwxr-xr-xsrc/nvim/CMakeLists.txt3
-rw-r--r--src/nvim/ui.c16
-rw-r--r--src/nvim/version.c4
3 files changed, 0 insertions, 23 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 92f75dbf75..6b92d0caa8 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -110,9 +110,6 @@ foreach(subdir
viml
viml/parser
)
- if(${subdir} MATCHES "tui" AND NOT FEAT_TUI)
- continue()
- endif()
file(MAKE_DIRECTORY ${GENERATED_DIR}/${subdir})
file(MAKE_DIRECTORY ${GENERATED_INCLUDES_DIR}/${subdir})
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)
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 98719fce4a..92122b2523 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -69,11 +69,7 @@ static char *features[] = {
"-iconv",
#endif
-#ifdef FEAT_TUI
"+tui",
-#else
- "-tui",
-#endif
NULL
};