mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
Minor changes in reviewer's point
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user