1
0
forked from aniani/vim

patch 9.0.0376: clang warns for dead assignments

Problem:    Clang warns for dead assignments.
Solution:   Adjust the code. (Yegappan Lakshmanan, closes #11048)
This commit is contained in:
Yegappan Lakshmanan
2022-09-04 12:47:21 +01:00
committed by Bram Moolenaar
parent c8ac3a072f
commit 6b085b9d73
8 changed files with 14 additions and 27 deletions

View File

@@ -1344,7 +1344,6 @@ op_tilde(oparg_T *oap)
pos.col = 0;
pos.lnum++;
}
ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
count = oap->end.col - pos.col + 1;
netbeans_removed(curbuf, pos.lnum, pos.col, (long)count);
// get the line again, it may have been flushed