mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 07:41:51 +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 <uv.h>
|
||||||
|
|
||||||
#include "nvim/vim.h"
|
#include "nvim/vim.h"
|
||||||
|
@@ -183,11 +183,9 @@ int pty_process_spawn(PtyProcess *ptyproc)
|
|||||||
uv_run(&proc->loop->uv, UV_RUN_ONCE);
|
uv_run(&proc->loop->uv, UV_RUN_ONCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ptyproc->type == PTY_TYPE_CONPTY) {
|
(ptyproc->type == PTY_TYPE_CONPTY) ?
|
||||||
ptyproc->object.conpty = conpty_object;
|
(void *)(ptyproc->object.conpty = conpty_object) :
|
||||||
} else {
|
(void *)(ptyproc->object.winpty = winpty_object);
|
||||||
ptyproc->object.winpty = winpty_object;
|
|
||||||
}
|
|
||||||
ptyproc->process_handle = process_handle;
|
ptyproc->process_handle = process_handle;
|
||||||
winpty_object = NULL;
|
winpty_object = NULL;
|
||||||
conpty_object = NULL;
|
conpty_object = NULL;
|
||||||
|
Reference in New Issue
Block a user