diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-16 11:55:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 11:55:34 +0100 |
commit | 90493beb1584b9a99d3a71658bccd536d601e0f7 (patch) | |
tree | 67700bd213d699b0c5116ca5b6f5078afd6f8246 /src/nvim/os/os_win_console.c | |
parent | 2773685c1df8cfe6cdc7bfc29836641cadeb0726 (diff) | |
parent | 160c69b655ce2e47fbedcc87fcb4949c2bc04dce (diff) | |
download | rneovim-90493beb1584b9a99d3a71658bccd536d601e0f7.tar.gz rneovim-90493beb1584b9a99d3a71658bccd536d601e0f7.tar.bz2 rneovim-90493beb1584b9a99d3a71658bccd536d601e0f7.zip |
Merge pull request #21831 from bfredl/nofd
fix(ui): re-organize tty fd handling and fix issues
Diffstat (limited to 'src/nvim/os/os_win_console.c')
-rw-r--r-- | src/nvim/os/os_win_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/os_win_console.c b/src/nvim/os/os_win_console.c index ec0f03a1dc..18f6e8b37b 100644 --- a/src/nvim/os/os_win_console.c +++ b/src/nvim/os/os_win_console.c @@ -14,7 +14,7 @@ static HWND hWnd = NULL; static HICON hOrigIconSmall = NULL; static HICON hOrigIcon = NULL; -int os_get_conin_fd(void) +int os_open_conin_fd(void) { const HANDLE conin_handle = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE, @@ -30,7 +30,7 @@ int os_get_conin_fd(void) void os_replace_stdin_to_conin(void) { close(STDIN_FILENO); - const int conin_fd = os_get_conin_fd(); + const int conin_fd = os_open_conin_fd(); assert(conin_fd == STDIN_FILENO); } |