aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_win.c
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-11-15 13:12:48 +0900
committerBjörn Linse <bjorn.linse@gmail.com>2020-01-17 11:36:28 +0100
commitb4ff583277ce16584f20868cef6697f52bebc7d4 (patch)
tree1a0a7f69fe31df511afa57a7579c5446cdb77be9 /src/nvim/os/pty_process_win.c
parent7aff0340e1f0550ff1c04dc17474d7cb6e57a89b (diff)
downloadrneovim-b4ff583277ce16584f20868cef6697f52bebc7d4.tar.gz
rneovim-b4ff583277ce16584f20868cef6697f52bebc7d4.tar.bz2
rneovim-b4ff583277ce16584f20868cef6697f52bebc7d4.zip
Minor changes in reviewer's point
Diffstat (limited to 'src/nvim/os/pty_process_win.c')
-rw-r--r--src/nvim/os/pty_process_win.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c
index ffdececf94..0cd730401a 100644
--- a/src/nvim/os/pty_process_win.c
+++ b/src/nvim/os/pty_process_win.c
@@ -183,11 +183,9 @@ int pty_process_spawn(PtyProcess *ptyproc)
uv_run(&proc->loop->uv, UV_RUN_ONCE);
}
- if (ptyproc->type == PTY_TYPE_CONPTY) {
- ptyproc->object.conpty = conpty_object;
- } else {
- ptyproc->object.winpty = winpty_object;
- }
+ (ptyproc->type == PTY_TYPE_CONPTY) ?
+ (void *)(ptyproc->object.conpty = conpty_object) :
+ (void *)(ptyproc->object.winpty = winpty_object);
ptyproc->process_handle = process_handle;
winpty_object = NULL;
conpty_object = NULL;