mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4388: dead code in op_insert()
Problem: Dead code in op_insert(). Solution: Remove condition and else block. (closes #9782)
This commit is contained in:
@@ -1586,8 +1586,6 @@ op_insert(oparg_T *oap, long count1)
|
||||
int t = getviscol2(curbuf->b_op_start_orig.col,
|
||||
curbuf->b_op_start_orig.coladd);
|
||||
|
||||
if (!bd.is_MAX)
|
||||
{
|
||||
if (oap->op_type == OP_INSERT
|
||||
&& oap->start.col + oap->start.coladd
|
||||
!= curbuf->b_op_start_orig.col
|
||||
@@ -1610,13 +1608,6 @@ op_insert(oparg_T *oap, long count1)
|
||||
oap->op_type = OP_INSERT;
|
||||
}
|
||||
}
|
||||
else if (bd.is_MAX && oap->op_type == OP_APPEND)
|
||||
{
|
||||
// reset pre_textlen to the value of OP_INSERT
|
||||
pre_textlen += bd.textlen;
|
||||
pre_textlen -= t - oap->start_vcol;
|
||||
}
|
||||
}
|
||||
|
||||
// Spaces and tabs in the indent may have changed to other spaces and
|
||||
// tabs. Get the starting column again and correct the length.
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4388,
|
||||
/**/
|
||||
4387,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user