diff options
author | KunMing Xie <qqzz014@gmail.com> | 2018-06-23 18:45:10 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-23 12:45:10 +0200 |
commit | ddde74764409ab380daf4b5b52022b9d40989974 (patch) | |
tree | c4a930e6707486bda00d678bd75c64a2598409c0 /src | |
parent | 7f7802e64368323fa01ce80b6f6968a3aa54795d (diff) | |
download | rneovim-ddde74764409ab380daf4b5b52022b9d40989974.tar.gz rneovim-ddde74764409ab380daf4b5b52022b9d40989974.tar.bz2 rneovim-ddde74764409ab380daf4b5b52022b9d40989974.zip |
vim-patch:8.0.0544: cppcheck warnings (#8627)
Problem: Cppcheck warnings.
Solution: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique
Pelle)
https://github.com/vim/vim/commit/866c68861071f8cd1ef5a82445bebaafc8626e7e
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/farsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/farsi.c b/src/nvim/farsi.c index fae2c805f9..6de84fbf4d 100644 --- a/src/nvim/farsi.c +++ b/src/nvim/farsi.c @@ -1580,7 +1580,7 @@ static void conv_to_pvim(void) ptr[i] = toF_leading(ptr[i]); i++; - while (canF_Rjoin(ptr[i]) && i < llen) { + while (i < llen && canF_Rjoin(ptr[i])) { ptr[i] = toF_Rjoin(ptr[i]); if (F_isterm(ptr[i]) || !F_isalpha(ptr[i])) { break; |