From 4b0e2605eaf90268195029a29f10903dc82729e7 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 9 Feb 2025 22:04:33 +0100 Subject: feat(ui): UI :detach command Problem: Cannot detach the current UI. Solution: - Introduce `:detach`. - Introduce `Channel.detach`. Co-authored-by: bfredl --- src/nvim/os/input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nvim/os/input.c') diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 3259fb500b..f510c67753 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -274,8 +274,10 @@ void input_enqueue_raw(const char *data, size_t size) input_write_pos += to_write; } -size_t input_enqueue(String keys) +size_t input_enqueue(uint64_t chan_id, String keys) { + current_ui = chan_id; + const char *ptr = keys.data; const char *end = ptr + keys.size; -- cgit