diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-15 04:52:38 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-15 10:52:38 +0200 |
commit | 63ecfc97ef592f2caced2563f9155f74b3b453cc (patch) | |
tree | 1bf5ad5220e58097eb2a6a6e7a10627e09fd5735 | |
parent | 5a32db9ad48670ec3d07307f0a61496ec30f2cbd (diff) | |
download | rneovim-63ecfc97ef592f2caced2563f9155f74b3b453cc.tar.gz rneovim-63ecfc97ef592f2caced2563f9155f74b3b453cc.tar.bz2 rneovim-63ecfc97ef592f2caced2563f9155f74b3b453cc.zip |
PVS/V590: redundant condition #10510
-rw-r--r-- | src/nvim/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index ed18df3877..ed5934cec2 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -1217,7 +1217,7 @@ int do_search( xfree(msgbuf); msgbuf = r; // move reversed text to beginning of buffer - while (*r != NUL && *r == ' ') { + while (*r == ' ') { r++; } size_t pat_len = msgbuf + STRLEN(msgbuf) - r; |