mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.1478: Unused assignment in ex_uniq()
Problem: Unused assignment in ex_uniq() (after v9.1.1476) Solution: Remove the assignment and the wrong comments above (zeertzjq). closes: #17596 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
a931371694
commit
fc378a88d8
@ -729,15 +729,9 @@ ex_uniq(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make an array with all line numbers. This avoids having to copy all
|
// Find the length of the longest line.
|
||||||
// the lines into allocated memory.
|
|
||||||
// When remove deplicating on strings "start_col_nr" is the offset in the
|
|
||||||
// line, for numbers remove deplicating it's the number to uniq on. This
|
|
||||||
// means the pattern matching only has to be done once per line.
|
|
||||||
// Also get the longest line length for allocating "sortbuf".
|
|
||||||
for (lnum = eap->line1; lnum <= eap->line2; ++lnum)
|
for (lnum = eap->line1; lnum <= eap->line2; ++lnum)
|
||||||
{
|
{
|
||||||
s = ml_get(lnum);
|
|
||||||
len = ml_get_len(lnum);
|
len = ml_get_len(lnum);
|
||||||
if (maxlen < len)
|
if (maxlen < len)
|
||||||
maxlen = len;
|
maxlen = len;
|
||||||
|
@ -709,6 +709,10 @@ 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 */
|
||||||
|
/**/
|
||||||
|
1478,
|
||||||
|
/**/
|
||||||
|
1477,
|
||||||
/**/
|
/**/
|
||||||
1476,
|
1476,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user