mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +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);
|
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");
|
const char *term = os_getenv_noalloc("TERM");
|
||||||
|
|
||||||
if (!term) {
|
if (!term) {
|
||||||
|
Reference in New Issue
Block a user