forked from aniani/vim
patch 9.1.0581: Various lines are indented inconsistently
Problem: style: Various lines are indented inconsistently Solution: Retab these lines and correct some comments. (zeertzjq) closes: #15259 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
90a800274d
commit
d9be94cf03
@@ -827,20 +827,20 @@ linetabsize_no_outer(win_T *wp, linenr_T lnum)
|
||||
|
||||
if (cts.cts_text_prop_count)
|
||||
{
|
||||
int write_idx = 0;
|
||||
for (int read_idx = 0; read_idx < cts.cts_text_prop_count; read_idx++)
|
||||
{
|
||||
textprop_T *tp = &cts.cts_text_props[read_idx];
|
||||
if (tp->tp_col != MAXCOL)
|
||||
{
|
||||
if (read_idx != write_idx)
|
||||
cts.cts_text_props[write_idx] = *tp;
|
||||
write_idx++;
|
||||
}
|
||||
}
|
||||
cts.cts_text_prop_count = write_idx;
|
||||
if (cts.cts_text_prop_count == 0)
|
||||
VIM_CLEAR(cts.cts_text_props);
|
||||
int write_idx = 0;
|
||||
for (int read_idx = 0; read_idx < cts.cts_text_prop_count; read_idx++)
|
||||
{
|
||||
textprop_T *tp = &cts.cts_text_props[read_idx];
|
||||
if (tp->tp_col != MAXCOL)
|
||||
{
|
||||
if (read_idx != write_idx)
|
||||
cts.cts_text_props[write_idx] = *tp;
|
||||
write_idx++;
|
||||
}
|
||||
}
|
||||
cts.cts_text_prop_count = write_idx;
|
||||
if (cts.cts_text_prop_count == 0)
|
||||
VIM_CLEAR(cts.cts_text_props);
|
||||
}
|
||||
|
||||
win_linetabsize_cts(&cts, (colnr_T)MAXCOL);
|
||||
|
Reference in New Issue
Block a user