mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
fix(embed): handle stdio in server properly
Rename stdin/stdout in the server, so that RPC data won't get corrupted. This also restores the use of stderr to write directly to the terminal.
This commit is contained in:
@@ -66,6 +66,7 @@ typedef struct {
|
||||
garray_T buffer;
|
||||
bool eof;
|
||||
bool buffered;
|
||||
bool fwd_err;
|
||||
const char *type;
|
||||
} CallbackReader;
|
||||
|
||||
@@ -73,6 +74,7 @@ typedef struct {
|
||||
.self = NULL, \
|
||||
.buffer = GA_EMPTY_INIT_VALUE, \
|
||||
.buffered = false, \
|
||||
.fwd_err = false, \
|
||||
.type = NULL })
|
||||
static inline bool callback_reader_set(CallbackReader reader)
|
||||
{
|
||||
|
Reference in New Issue
Block a user