Whitespace / formatting / bracket cleanup.
authorMark Whitley <markw@lineo.com>
Thu, 8 Mar 2001 19:31:12 +0000 (19:31 -0000)
committerMark Whitley <markw@lineo.com>
Thu, 8 Mar 2001 19:31:12 +0000 (19:31 -0000)
cmdedit.c
shell/cmdedit.c

index 993e83b21a05c6f595847f8704a52837dea2a9b0..272d22fc037595e41bb637e2f09b155d2e3151f1 100644 (file)
--- a/cmdedit.c
+++ b/cmdedit.c
@@ -1007,12 +1007,14 @@ static int find_match(char *matchBuf, int *len_with_quotes)
        /* skip first not quoted '\'' or '"' */
        for (i = 0; int_buf[i] == '\'' || int_buf[i] == '"'; i++);
        /* collapse quote or unquote // or /~ */
-       while ((int_buf[i] & ~QUOT) == '/' && (
-                                                                                  (int_buf[i + 1] & ~QUOT) == '/'
-                                                                                  || (int_buf[i + 1] & ~QUOT) ==
-                                                                                  '~')) i++;
-       if (i)
+       while ((int_buf[i] & ~QUOT) == '/' && 
+                       ((int_buf[i + 1] & ~QUOT) == '/'
+                        || (int_buf[i + 1] & ~QUOT) == '~')) {
+               i++;
+       }
+       if (i) {
                collapse_pos(0, i);
+       }
 
        /* set only match and destroy quotes */
        j = 0;
index 993e83b21a05c6f595847f8704a52837dea2a9b0..272d22fc037595e41bb637e2f09b155d2e3151f1 100644 (file)
@@ -1007,12 +1007,14 @@ static int find_match(char *matchBuf, int *len_with_quotes)
        /* skip first not quoted '\'' or '"' */
        for (i = 0; int_buf[i] == '\'' || int_buf[i] == '"'; i++);
        /* collapse quote or unquote // or /~ */
-       while ((int_buf[i] & ~QUOT) == '/' && (
-                                                                                  (int_buf[i + 1] & ~QUOT) == '/'
-                                                                                  || (int_buf[i + 1] & ~QUOT) ==
-                                                                                  '~')) i++;
-       if (i)
+       while ((int_buf[i] & ~QUOT) == '/' && 
+                       ((int_buf[i + 1] & ~QUOT) == '/'
+                        || (int_buf[i + 1] & ~QUOT) == '~')) {
+               i++;
+       }
+       if (i) {
                collapse_pos(0, i);
+       }
 
        /* set only match and destroy quotes */
        j = 0;