mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
refactor(tui): redundant input->in_fd assignment #33756
Problem: `input->in_fd = STDIN_FILENO;` was set twice during TUI initialization. Solution: Remove the duplicate assignment for clarity and better performance
This commit is contained in:
@@ -138,8 +138,6 @@ void tinput_init(TermInput *input, Loop *loop)
|
||||
pmap_put(int)(&kitty_key_map, kitty_key_map_entry[i].key, (ptr_t)kitty_key_map_entry[i].name);
|
||||
}
|
||||
|
||||
input->in_fd = STDIN_FILENO;
|
||||
|
||||
const char *term = os_getenv_noalloc("TERM");
|
||||
|
||||
if (!term) {
|
||||
|
Reference in New Issue
Block a user