mirror of
https://github.com/vim/vim.git
synced 2025-11-10 10:47:23 -05:00
patch 9.0.1784: redundant else in pum_set_selected()
Problem: redundant else in pum_set_selected() Solution: Remove it closes: #12893 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: mathew <glephunter@gmail.com>
This commit is contained in:
committed by
Christian Brabandt
parent
3d3a9152fa
commit
c51fa7bc46
@@ -920,13 +920,10 @@ pum_set_selected(int n, int repeat UNUSED)
|
|||||||
ml_append(lnum++, p, 0, FALSE);
|
ml_append(lnum++, p, 0, FALSE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
*e = NUL;
|
||||||
{
|
ml_append(lnum++, p, (int)(e - p + 1), FALSE);
|
||||||
*e = NUL;
|
*e = '\n';
|
||||||
ml_append(lnum++, p, (int)(e - p + 1), FALSE);
|
p = e + 1;
|
||||||
*e = '\n';
|
|
||||||
p = e + 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// delete the empty last line
|
// delete the empty last line
|
||||||
ml_delete(curbuf->b_ml.ml_line_count);
|
ml_delete(curbuf->b_ml.ml_line_count);
|
||||||
|
|||||||
@@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1784,
|
||||||
/**/
|
/**/
|
||||||
1783,
|
1783,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user