aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-01-15 09:37:59 +0900
committerwatiko <service@mail.watiko.net>2016-02-01 03:43:36 +0900
commitb3dbc9d90b4e4f3ec627ab2a17238281097e330c (patch)
tree0e5dae4329b5192b20901b4be7491d07c27faee7 /src
parent5ef1cb5c2e77e3df70d93ade9afb54a3e989a3ee (diff)
downloadrneovim-b3dbc9d90b4e4f3ec627ab2a17238281097e330c.tar.gz
rneovim-b3dbc9d90b4e4f3ec627ab2a17238281097e330c.tar.bz2
rneovim-b3dbc9d90b4e4f3ec627ab2a17238281097e330c.zip
vim-patch:7.4.778
Problem: Coverity warns for uninitialized variable. Solution: Change condition of assignment. https://github.com/vim/vim/commit/ae2fe73abc954b8fd3dbd7994daa8e31e6690bd0
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ops.c6
-rw-r--r--src/nvim/version.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 78eebc520f..943dd7a2da 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -4531,10 +4531,10 @@ int do_addsub(int command, linenr_T Prenum1, bool g_cmd)
// reset
subtract = false;
negative = false;
- if (visual && VIsual_mode != Ctrl_V) {
- col = 0;
- } else {
+ if (visual && VIsual_mode == Ctrl_V) {
col = startcol;
+ } else {
+ col = 0;
}
Prenum1 += offset;
curwin->w_set_curswant = true;
diff --git a/src/nvim/version.c b/src/nvim/version.c
index f85547176c..84a15bec0a 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -356,7 +356,7 @@ static int included_patches[] = {
781,
// 780 NA
// 779,
- // 778,
+ 778,
// 777 NA
776,
775,