aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-07-04 16:24:48 +0300
committerZyX <kp-pav@yandex.ru>2017-07-04 16:24:48 +0300
commit1f05ec95c04f7fd300ce3696b40f09e057d4fb06 (patch)
treece3600b5746cc5d9ea1bc9fa48ede5be2a4019bc
parentc930f32ab94c7d4e4a037ebb15006753dc3fa5e5 (diff)
downloadrneovim-1f05ec95c04f7fd300ce3696b40f09e057d4fb06.tar.gz
rneovim-1f05ec95c04f7fd300ce3696b40f09e057d4fb06.tar.bz2
rneovim-1f05ec95c04f7fd300ce3696b40f09e057d4fb06.zip
ex_getln: Silent V519: value is assigned twice successively
This is usual “passing data via global” false positive.
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 7793081957..0ba6c79a71 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -306,7 +306,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
curwin->w_cursor = s->save_cursor;
setpcmark();
}
- curwin->w_cursor = s->search_start;
+ curwin->w_cursor = s->search_start; // -V519
}
curwin->w_curswant = s->old_curswant;
curwin->w_leftcol = s->old_leftcol;