mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.1372: style: braces issues in various files
Problem: style: braces issues in various files Solution: fix style (Hirohito Higashi) closes: #17277 Signed-off-by: Hirohito Higashi <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
19e1dd6b6a
commit
a4a00a7ad0
@ -2447,7 +2447,8 @@ get_c_indent(void)
|
|||||||
char_u *line;
|
char_u *line;
|
||||||
|
|
||||||
trypos = &our_paren_pos;
|
trypos = &our_paren_pos;
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
outermost = *trypos;
|
outermost = *trypos;
|
||||||
curwin->w_cursor.lnum = outermost.lnum;
|
curwin->w_cursor.lnum = outermost.lnum;
|
||||||
curwin->w_cursor.col = outermost.col;
|
curwin->w_cursor.col = outermost.col;
|
||||||
|
@ -2091,7 +2091,8 @@ VimDialog::VimDialog(int type, const char *title, const char *message,
|
|||||||
float buttonsHeight = 0;
|
float buttonsHeight = 0;
|
||||||
BString strButtons(buttons);
|
BString strButtons(buttons);
|
||||||
strButtons.RemoveAll("&");
|
strButtons.RemoveAll("&");
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
int32 end = strButtons.FindFirst('\n');
|
int32 end = strButtons.FindFirst('\n');
|
||||||
if (end != B_ERROR)
|
if (end != B_ERROR)
|
||||||
strButtons.SetByteAt(end, '\0');
|
strButtons.SetByteAt(end, '\0');
|
||||||
|
@ -5246,7 +5246,8 @@ find_comp_when_fuzzy(void)
|
|||||||
str = compl_match_array[target_idx].pum_text;
|
str = compl_match_array[target_idx].pum_text;
|
||||||
|
|
||||||
comp = compl_first_match;
|
comp = compl_first_match;
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
if (comp->cp_score == score && (str == comp->cp_str.string || str == comp->cp_text[CPT_ABBR]))
|
if (comp->cp_score == score && (str == comp->cp_str.string || str == comp->cp_text[CPT_ABBR]))
|
||||||
return comp;
|
return comp;
|
||||||
comp = comp->cp_next;
|
comp = comp->cp_next;
|
||||||
|
@ -2068,7 +2068,8 @@ do_put(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
totlen = count * yanklen;
|
totlen = count * yanklen;
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
oldp = ml_get(lnum);
|
oldp = ml_get(lnum);
|
||||||
oldlen = ml_get_len(lnum);
|
oldlen = ml_get_len(lnum);
|
||||||
if (lnum > start_lnum)
|
if (lnum > start_lnum)
|
||||||
|
@ -5344,7 +5344,8 @@ search_for_fuzzy_match(
|
|||||||
if (whole_line && start_pos->lnum != pos->lnum)
|
if (whole_line && start_pos->lnum != pos->lnum)
|
||||||
current_pos.lnum += dir;
|
current_pos.lnum += dir;
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
|
|
||||||
// Check if looped around and back to start position
|
// Check if looped around and back to start position
|
||||||
if (looped_around && EQUAL_POS(current_pos, circly_end))
|
if (looped_around && EQUAL_POS(current_pos, circly_end))
|
||||||
|
@ -279,7 +279,8 @@ tgetstr(char *id, char **buf)
|
|||||||
char *hold;
|
char *hold;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
tmp = _find(tmp, ":"); // For each field
|
tmp = _find(tmp, ":"); // For each field
|
||||||
while (*tmp == ':') // skip empty fields
|
while (*tmp == ':') // skip empty fields
|
||||||
tmp++;
|
tmp++;
|
||||||
|
@ -606,7 +606,8 @@ uc_list(char_u *name, size_t name_len)
|
|||||||
msg_outtrans_attr(cmd->uc_name, HL_ATTR(HLF_D));
|
msg_outtrans_attr(cmd->uc_name, HL_ATTR(HLF_D));
|
||||||
len = (int)cmd->uc_namelen + 4;
|
len = (int)cmd->uc_namelen + 4;
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
msg_putchar(' ');
|
msg_putchar(' ');
|
||||||
++len;
|
++len;
|
||||||
} while (len < 22);
|
} while (len < 22);
|
||||||
@ -626,7 +627,8 @@ uc_list(char_u *name, size_t name_len)
|
|||||||
case (EX_EXTRA|EX_NOSPC|EX_NEEDARG): IObuff[len++] = '1'; break;
|
case (EX_EXTRA|EX_NOSPC|EX_NEEDARG): IObuff[len++] = '1'; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
IObuff[len++] = ' ';
|
IObuff[len++] = ' ';
|
||||||
} while (len < 5 - over);
|
} while (len < 5 - over);
|
||||||
|
|
||||||
@ -649,7 +651,8 @@ uc_list(char_u *name, size_t name_len)
|
|||||||
IObuff[len++] = '.';
|
IObuff[len++] = '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
IObuff[len++] = ' ';
|
IObuff[len++] = ' ';
|
||||||
} while (len < 8 - over);
|
} while (len < 8 - over);
|
||||||
|
|
||||||
@ -663,7 +666,8 @@ uc_list(char_u *name, size_t name_len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
IObuff[len++] = ' ';
|
IObuff[len++] = ' ';
|
||||||
} while (len < 13 - over);
|
} while (len < 13 - over);
|
||||||
|
|
||||||
@ -688,7 +692,8 @@ uc_list(char_u *name, size_t name_len)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
IObuff[len++] = ' ';
|
IObuff[len++] = ' ';
|
||||||
} while (len < 25 - over);
|
} while (len < 25 - over);
|
||||||
|
|
||||||
|
@ -704,6 +704,8 @@ 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 */
|
||||||
|
/**/
|
||||||
|
1372,
|
||||||
/**/
|
/**/
|
||||||
1371,
|
1371,
|
||||||
/**/
|
/**/
|
||||||
|
@ -2899,7 +2899,8 @@ read_viminfo_up_to_marks(
|
|||||||
if (virp->vir_version < VIMINFO_VERSION_WITH_REGISTERS)
|
if (virp->vir_version < VIMINFO_VERSION_WITH_REGISTERS)
|
||||||
eof = read_viminfo_register(virp, forceit);
|
eof = read_viminfo_register(virp, forceit);
|
||||||
else
|
else
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
eof = viminfo_readline(virp);
|
eof = viminfo_readline(virp);
|
||||||
} while (!eof && (virp->vir_line[0] == TAB
|
} while (!eof && (virp->vir_line[0] == TAB
|
||||||
|| virp->vir_line[0] == '<'));
|
|| virp->vir_line[0] == '<'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user