0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.5070: unnecessary code

Problem:    Unnecessary code.
Solution:   Remove code that isn't needed. (closes #10534)
This commit is contained in:
zeertzjq
2022-06-09 13:55:28 +01:00
committed by Bram Moolenaar
parent ebb01bdb27
commit b5f0801b1f
3 changed files with 12 additions and 16 deletions

View File

@@ -1997,11 +1997,13 @@ msg_prt_line(char_u *s, int list)
&& curwin->w_lcs_chars.leadmultispace != NULL)
{
c = curwin->w_lcs_chars.leadmultispace[multispace_pos++];
if (curwin->w_lcs_chars.leadmultispace[multispace_pos] == NUL)
if (curwin->w_lcs_chars.leadmultispace[multispace_pos]
== NUL)
multispace_pos = 0;
attr = HL_ATTR(HLF_8);
}
else if (lead != NULL && s <= lead && curwin->w_lcs_chars.lead)
else if (lead != NULL && s <= lead
&& curwin->w_lcs_chars.lead != NUL)
{
c = curwin->w_lcs_chars.lead;
attr = HL_ATTR(HLF_8);
@@ -2011,14 +2013,6 @@ msg_prt_line(char_u *s, int list)
c = curwin->w_lcs_chars.trail;
attr = HL_ATTR(HLF_8);
}
else if (list && lead != NULL && s <= lead && in_multispace
&& curwin->w_lcs_chars.leadmultispace != NULL)
{
c = curwin->w_lcs_chars.leadmultispace[multispace_pos++];
if (curwin->w_lcs_chars.leadmultispace[multispace_pos] == NUL)
multispace_pos = 0;
attr = HL_ATTR(HLF_8);
}
else if (list && in_multispace
&& curwin->w_lcs_chars.multispace != NULL)
{