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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user