diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-17 22:02:46 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-17 22:02:46 +0200 |
commit | ce7cba6d7f36e79d52825215ba7b6848397b0440 (patch) | |
tree | cf249b863e9bfa1a6943b91dc293cc38bf71f6a7 /src/nvim/getchar.c | |
parent | 7debba9d4295f09bc338a5f0718abdc54d565a56 (diff) | |
parent | 2eb9150a4fcb8f43599e5f470cbcb3a12195d910 (diff) | |
download | rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.gz rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.bz2 rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.zip |
Merge #6533 'Fix PVS-studio warnings'
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 3b248c4bc6..e056ff488c 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1849,11 +1849,12 @@ static int vgetorpeek(int advance) mp_match = mp; mp_match_len = keylen; } - } else - /* No match; may have to check for - * termcode at next character. */ - if (max_mlen < mlen) - max_mlen = mlen; + } else { + // No match; may have to check for termcode at next character. + if (max_mlen < mlen) { + max_mlen = mlen; + } + } } } |