From 18cb09e09513dc69a69578940873a455a303247b Mon Sep 17 00:00:00 2001 From: lonerover Date: Tue, 27 Dec 2016 00:25:59 +0800 Subject: vim-patch:7.4.1780 (#5828) Problem: Warnings reported by cppcheck. Solution: Fix the warnings. (Dominique Pelle) https://github.com/vim/vim/commit/dc633cf82758f67f656cda7fa8ccc30414ee53f8 --- src/nvim/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ops.c') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index dfa89acb1a..9e95c1a3e7 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4607,7 +4607,7 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1) goto theend; } ptr = buf1; - if (negative && (!visual || (visual && was_positive))) { + if (negative && (!visual || was_positive)) { *ptr++ = '-'; } if (pre) { -- cgit