diff options
author | Gregory Anders <greg@gpanders.com> | 2021-07-12 11:55:20 -0600 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2021-08-26 21:57:11 -0400 |
commit | 008b83f5a28eeb449f76f420f56648a1b5f45b5c (patch) | |
tree | e88d5e5ca1e157c2105db58b5291af2a3c69adca /src/nvim/channel.c | |
parent | 915dda3f96b3619769bc93dab19841138fcb7eaf (diff) | |
download | rneovim-008b83f5a28eeb449f76f420f56648a1b5f45b5c.tar.gz rneovim-008b83f5a28eeb449f76f420f56648a1b5f45b5c.tar.bz2 rneovim-008b83f5a28eeb449f76f420f56648a1b5f45b5c.zip |
Rename stdin to stdin_mode
stdin is a macro in Windows builds.
Diffstat (limited to 'src/nvim/channel.c')
-rw-r--r-- | src/nvim/channel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/channel.c b/src/nvim/channel.c index ffa4d12d11..a0db1bcdfd 100644 --- a/src/nvim/channel.c +++ b/src/nvim/channel.c @@ -289,9 +289,9 @@ static void close_cb(Stream *stream, void *data) /// `on_stdout` is ignored /// @param[in] detach True if the job should not be killed when nvim exits, /// ignored if `pty` is true -/// @param[in] stdin Stdin mode. Either kChannelStdinPipe to open a channel -/// for stdin or kChannelStdinNull to leave stdin -/// disconnected. +/// @param[in] stdin_mode Stdin mode. Either kChannelStdinPipe to open a +/// channel for stdin or kChannelStdinNull to leave +/// stdin disconnected. /// @param[in] cwd Initial working directory for the job. Nvim's working /// directory if `cwd` is NULL /// @param[in] pty_width Width of the pty, ignored if `pty` is false @@ -305,7 +305,7 @@ static void close_cb(Stream *stream, void *data) Channel *channel_job_start(char **argv, CallbackReader on_stdout, CallbackReader on_stderr, Callback on_exit, bool pty, bool rpc, bool overlapped, bool detach, - ChannelStdinMode stdin, const char *cwd, + ChannelStdinMode stdin_mode, const char *cwd, uint16_t pty_width, uint16_t pty_height, dict_T *env, varnumber_T *status_out) { @@ -357,7 +357,7 @@ Channel *channel_job_start(char **argv, CallbackReader on_stdout, has_err = callback_reader_set(chan->on_stderr); } - switch (stdin) { + switch (stdin_mode) { case kChannelStdinPipe: has_in = true; break; |