]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1372: style: braces issues in various files v9.1.1372
authorHirohito Higashi <h.east.727@gmail.com>
Thu, 8 May 2025 20:58:31 +0000 (22:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 8 May 2025 20:58:31 +0000 (22:58 +0200)
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>
src/cindent.c
src/gui_haiku.cc
src/insexpand.c
src/register.c
src/search.c
src/termlib.c
src/usercmd.c
src/version.c
src/viminfo.c

index 217098016133023b52428a489290496be27d4821..e1f7446768afa7b5fa77a9a2c280c890f2bfda63 100644 (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;
index d083226547afb94d5fe5d3f67351615a180f802b..748f97e542f2d6aa3e97bbadef3ea45b5436bc8d 100644 (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');
index 91281bfc5b614bc7d17e11783bb1f1f8430d21ed..ade7bb772bc8324c012d877a6f8605373841fb90 100644 (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;
index 9d27706698cf943775abfb328b4769e77b5e7020..72d3135395e60196587108c50f9d5b83dba6627a 100644 (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)
index 43491b66843b8f91a45619fe04cf9ba1787e985f..5222a433dfba7dd9b21a04f46289c7b3037a83e5 100644 (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))
index ad5165a3ce3c2889a9fedff6e2e56d8635d347b0..42eccf5e90c2b5321f69d5db0671128001fb2662 100644 (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++;
index fafa97d15f248e7561e2b5d458e01a19ec809ad1..ded11e759b1798876ca7ec8f86601abd1dfc7c84 100644 (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);
 
index 472f9129f6a1ecc89b6e3c6d99c0ca2ba6ec3825..fb1f45b53d7d31ba7bdfab0f6442e980d56b8c38 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1372,
 /**/
     1371,
 /**/
index 44d54879fcc3d80aa27e03fcad122b30b1b2b895..f1e1fc372bec9ff13c820c6949d3537ef2365604 100644 (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] == '<'));