mirror of
https://github.com/neovim/neovim.git
synced 2026-01-20 20:21:50 +10:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user