aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui_client.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-09-11 17:25:00 -0700
committerGitHub <noreply@github.com>2024-09-11 17:25:00 -0700
commit5931f780e0282ad486fa070bb05b3877cc1d44f0 (patch)
treed8e4724e9da3425e6c768dd284cd634ecca72a2a /src/nvim/ui_client.c
parent98ba65b8be8cb2dde839502357e70916c4a3e37a (diff)
downloadrneovim-5931f780e0282ad486fa070bb05b3877cc1d44f0.tar.gz
rneovim-5931f780e0282ad486fa070bb05b3877cc1d44f0.tar.bz2
rneovim-5931f780e0282ad486fa070bb05b3877cc1d44f0.zip
feat(log): use "ui" as default name for TUI client #30345
The default "session name" for the builtin TUI is "ui". before: INF 2024-09-10T14:57:35.385 hello.sock os_exit:692: Nvim exit: 1 INF 2024-09-10T14:57:35.388 ?.4543 os_exit:692: Nvim exit: 1 after: INF 2024-09-10T14:59:19.919 hello.sock os_exit:692: Nvim exit: 1 INF 2024-09-10T14:59:19.922 ui.5684 os_exit:692: Nvim exit: 1
Diffstat (limited to 'src/nvim/ui_client.c')
-rw-r--r--src/nvim/ui_client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/ui_client.c b/src/nvim/ui_client.c
index 839cf965b0..cfa79b9d8c 100644
--- a/src/nvim/ui_client.c
+++ b/src/nvim/ui_client.c
@@ -22,6 +22,7 @@
#include "nvim/memory_defs.h"
#include "nvim/msgpack_rpc/channel.h"
#include "nvim/msgpack_rpc/channel_defs.h"
+#include "nvim/os/os.h"
#include "nvim/os/os_defs.h"
#include "nvim/tui/tui.h"
#include "nvim/tui/tui_defs.h"
@@ -126,6 +127,11 @@ void ui_client_run(bool remote_ui)
ui_client_attach(width, height, term, rgb);
+ // TODO(justinmk): this is for log_spec. Can remove this after nvim_log #7062 is merged.
+ if (os_env_exists("__NVIM_TEST_LOG")) {
+ ELOG("test log message");
+ }
+
// os_exit() will be invoked when the client channel detaches
while (true) {
LOOP_PROCESS_EVENTS(&main_loop, resize_events, -1);