diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-11 17:25:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-11 17:25:00 -0700 |
| commit | 5931f780e0282ad486fa070bb05b3877cc1d44f0 (patch) | |
| tree | d8e4724e9da3425e6c768dd284cd634ecca72a2a /src/nvim/os | |
| parent | 98ba65b8be8cb2dde839502357e70916c4a3e37a (diff) | |
| download | rneovim-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/os')
| -rw-r--r-- | src/nvim/os/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index a240c0e5b6..7c5293a8b8 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -100,7 +100,7 @@ static void reset_cursorhold_wait(int tb_change_cnt) /// /// Originally based on the Vim `mch_inchar` function. /// -/// @param buf Buffer to store read input. +/// @param buf Buffer to store consumed input. /// @param maxlen Maximum bytes to read into `buf`, or 0 to skip reading. /// @param ms Timeout in milliseconds. -1 for indefinite wait, 0 for no wait. /// @param tb_change_cnt Used to detect when typeahead changes. @@ -493,7 +493,7 @@ static TriState inbuf_poll(int ms, MultiQueue *events) blocking = true; multiqueue_process_events(ch_before_blocking_events); } - DLOG("blocking... events=%d pending=%d", !!events, pending_events(events)); + DLOG("blocking... events=%s", !!events ? "true" : "false"); LOOP_PROCESS_EVENTS_UNTIL(&main_loop, NULL, ms, os_input_ready(events) || input_eof); blocking = false; |