aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-20 15:13:55 +0800
committerGitHub <noreply@github.com>2023-02-20 15:13:55 +0800
commitf1816f9ee2a8b811fd6ce4e60a843087f855f97d (patch)
treeb28f8e65d98b5b346e7efb155b4d23d734eb2347 /src/nvim/tui
parentb62c0c8d9c22ae7fc9ee200733f8312efa6dbced (diff)
downloadrneovim-f1816f9ee2a8b811fd6ce4e60a843087f855f97d.tar.gz
rneovim-f1816f9ee2a8b811fd6ce4e60a843087f855f97d.tar.bz2
rneovim-f1816f9ee2a8b811fd6ce4e60a843087f855f97d.zip
refactor(main.c): remove unreachable use_builtin_ui conditions (#22338)
When use_builtin_ui is true, Nvim will exit before line 385 is reached.
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index c992253e1f..cb687d4f65 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -208,7 +208,7 @@ static void tinput_wait_enqueue(void **argv)
input->paste = 2;
}
rbuffer_reset(input->key_buffer);
- } else { // enqueue input for the main thread or Nvim server
+ } else { // enqueue input
RBUFFER_UNTIL_EMPTY(input->key_buffer, buf, len) {
const String keys = { .data = buf, .size = len };
MAXSIZE_TEMP_ARRAY(args, 1);