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:
Hirohito Higashi
2025-05-08 22:58:31 +02:00
committed by Christian Brabandt
parent 19e1dd6b6a
commit a4a00a7ad0
9 changed files with 26 additions and 12 deletions

View File

@ -2447,7 +2447,8 @@ get_c_indent(void)
char_u *line;
trypos = &our_paren_pos;
do {
do
{
outermost = *trypos;
curwin->w_cursor.lnum = outermost.lnum;
curwin->w_cursor.col = outermost.col;

View File

@ -2091,7 +2091,8 @@ VimDialog::VimDialog(int type, const char *title, const char *message,
float buttonsHeight = 0;
BString strButtons(buttons);
strButtons.RemoveAll("&");
do {
do
{
int32 end = strButtons.FindFirst('\n');
if (end != B_ERROR)
strButtons.SetByteAt(end, '\0');

View File

@ -5246,7 +5246,8 @@ find_comp_when_fuzzy(void)
str = compl_match_array[target_idx].pum_text;
comp = compl_first_match;
do {
do
{
if (comp->cp_score == score && (str == comp->cp_str.string || str == comp->cp_text[CPT_ABBR]))
return comp;
comp = comp->cp_next;

View File

@ -2068,7 +2068,8 @@ do_put(
else
{
totlen = count * yanklen;
do {
do
{
oldp = ml_get(lnum);
oldlen = ml_get_len(lnum);
if (lnum > start_lnum)

View File

@ -5344,7 +5344,8 @@ search_for_fuzzy_match(
if (whole_line && start_pos->lnum != pos->lnum)
current_pos.lnum += dir;
do {
do
{
// Check if looped around and back to start position
if (looped_around && EQUAL_POS(current_pos, circly_end))

View File

@ -279,7 +279,8 @@ tgetstr(char *id, char **buf)
char *hold;
int i;
do {
do
{
tmp = _find(tmp, ":"); // For each field
while (*tmp == ':') // skip empty fields
tmp++;

View File

@ -606,7 +606,8 @@ uc_list(char_u *name, size_t name_len)
msg_outtrans_attr(cmd->uc_name, HL_ATTR(HLF_D));
len = (int)cmd->uc_namelen + 4;
do {
do
{
msg_putchar(' ');
++len;
} 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;
}
do {
do
{
IObuff[len++] = ' ';
} while (len < 5 - over);
@ -649,7 +651,8 @@ uc_list(char_u *name, size_t name_len)
IObuff[len++] = '.';
}
do {
do
{
IObuff[len++] = ' ';
} while (len < 8 - over);
@ -663,7 +666,8 @@ uc_list(char_u *name, size_t name_len)
break;
}
do {
do
{
IObuff[len++] = ' ';
} while (len < 13 - over);
@ -688,7 +692,8 @@ uc_list(char_u *name, size_t name_len)
#endif
}
do {
do
{
IObuff[len++] = ' ';
} while (len < 25 - over);

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1372,
/**/
1371,
/**/

View File

@ -2899,7 +2899,8 @@ read_viminfo_up_to_marks(
if (virp->vir_version < VIMINFO_VERSION_WITH_REGISTERS)
eof = read_viminfo_register(virp, forceit);
else
do {
do
{
eof = viminfo_readline(virp);
} while (!eof && (virp->vir_line[0] == TAB
|| virp->vir_line[0] == '<'));