aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2015-04-21 14:25:41 +0200
committerEliseo Martínez <eliseomarmol@gmail.com>2015-04-23 16:26:44 +0200
commit178e9fc2f6c8e9d7c7858a71c05a3f896fc05eb2 (patch)
treeb9854ccc730198a0eae439463bcfa69b64e17f40
parent04e098fc3c485eaa6d323e9121e9c81215d94a87 (diff)
downloadrneovim-178e9fc2f6c8e9d7c7858a71c05a3f896fc05eb2.tar.gz
rneovim-178e9fc2f6c8e9d7c7858a71c05a3f896fc05eb2.tar.bz2
rneovim-178e9fc2f6c8e9d7c7858a71c05a3f896fc05eb2.zip
Fix warnings: ops.c: op_yank_reg(): Dead assignment: HI.
Problem : Dead assignment @ 2480. Diagnostic : Harmless issue. Rationale : It's true `reg` is not used any more after that point. Resolution : Delete line.
-rw-r--r--src/nvim/ops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 595f025d63..66ba9943d3 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -2477,7 +2477,6 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append)
curr->y_array[j++] = reg->y_array[y_idx++];
curr->y_size = j;
xfree(reg->y_array);
- reg = curr;
}
if (curwin->w_p_rnu) {
redraw_later(SOME_VALID); // cursor moved to start