diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-03-13 15:11:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 22:11:17 +0800 |
| commit | 4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6 (patch) | |
| tree | c281f75c93feb5d0789ee602484c22e3b6a83116 /src/nvim/os | |
| parent | 4ede2ea4b2e9cd61fb7e634fa35e6a500816be19 (diff) | |
| download | rneovim-4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6.tar.gz rneovim-4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6.tar.bz2 rneovim-4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6.zip | |
refactor: fix clint warnings (#17682)
Diffstat (limited to 'src/nvim/os')
| -rw-r--r-- | src/nvim/os/env.c | 4 | ||||
| -rw-r--r-- | src/nvim/os/pty_process_win.c | 3 | ||||
| -rw-r--r-- | src/nvim/os/shell.c | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index e9868d6b61..b738d36234 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -720,7 +720,7 @@ void expand_env_esc(char_u *restrict srcp, char_u *restrict dst, int dstlen, boo && dst[-1] != ':' #endif && vim_ispathsep(*tail)) { - ++tail; + tail++; } dst += c; src = tail; @@ -738,7 +738,7 @@ void expand_env_esc(char_u *restrict srcp, char_u *restrict dst, int dstlen, boo at_start = false; if (src[0] == '\\' && src[1] != NUL) { *dst++ = *src++; - --dstlen; + dstlen--; } else if ((src[0] == ' ' || src[0] == ',') && !one) { at_start = true; } diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c index 99231968a2..ed9f4636e3 100644 --- a/src/nvim/os/pty_process_win.c +++ b/src/nvim/os/pty_process_win.c @@ -58,8 +58,7 @@ int pty_process_spawn(PtyProcess *ptyproc) if (os_has_conpty_working()) { if ((conpty_object = - os_conpty_init(&in_name, &out_name, - ptyproc->width, ptyproc->height)) != NULL) { + os_conpty_init(&in_name, &out_name, ptyproc->width, ptyproc->height)) != NULL) { ptyproc->type = kConpty; } } diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index 656e059303..5680cdbe42 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -1229,7 +1229,7 @@ static void read_input(DynamicBuffer *buf) dynamic_buffer_ensure(buf, buf->len + 1); buf->data[buf->len++] = NL; } - ++lnum; + lnum++; if (lnum > curbuf->b_op_end.lnum) { break; } |