From 7e5291f111733edce3f9cb475af7938c8657f30d Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Thu, 8 Mar 2001 19:31:12 +0000 Subject: [PATCH] Whitespace / formatting / bracket cleanup. --- cmdedit.c | 12 +++++++----- shell/cmdedit.c | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/cmdedit.c b/cmdedit.c index 993e83b21..272d22fc0 100644 --- 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; diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 993e83b21..272d22fc0 100644 --- a/shell/cmdedit.c +++ b/shell/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;