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);
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
*e = NUL;
|
||||
ml_append(lnum++, p, (int)(e - p + 1), FALSE);
|
||||
*e = '\n';
|
||||
p = e + 1;
|
||||
}
|
||||
*e = NUL;
|
||||
ml_append(lnum++, p, (int)(e - p + 1), FALSE);
|
||||
*e = '\n';
|
||||
p = e + 1;
|
||||
}
|
||||
// delete the empty last line
|
||||
ml_delete(curbuf->b_ml.ml_line_count);
|
||||
|
||||
Reference in New Issue
Block a user