diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-31 18:34:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-31 18:34:32 +0100 |
commit | 101d57b34b72f4fbc7df1b6edfd64c64a6be14fc (patch) | |
tree | 246feb7236973fb7a526652ab5795f49a808e553 /src/arglist.c | |
parent | c146d974f13450453a7c1f5ab10b105c515f0ccb (diff) |
patch 9.0.0124: code has more indent than neededv9.0.0124
Problem: Code has more indent than needed.
Solution: Use continue and return statements. (closes #10824)
Diffstat (limited to 'src/arglist.c')
-rw-r--r-- | src/arglist.c | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/arglist.c b/src/arglist.c index 5c2236927e..9e8925a25e 100644 --- a/src/arglist.c +++ b/src/arglist.c @@ -1241,32 +1241,31 @@ arg_all(void) for (idx = 0; idx < ARGCOUNT; ++idx) { p = alist_name(&ARGLIST[idx]); - if (p != NULL) + if (p == NULL) + continue; + if (len > 0) { - if (len > 0) - { - // insert a space in between names - if (retval != NULL) - retval[len] = ' '; - ++len; - } - for ( ; *p != NUL; ++p) - { - if (*p == ' ' + // insert a space in between names + if (retval != NULL) + retval[len] = ' '; + ++len; + } + for ( ; *p != NUL; ++p) + { + if (*p == ' ' #ifndef BACKSLASH_IN_FILENAME - || *p == '\\' + || *p == '\\' #endif - || *p == '`') - { - // insert a backslash - if (retval != NULL) - retval[len] = '\\'; - ++len; - } + || *p == '`') + { + // insert a backslash if (retval != NULL) - retval[len] = *p; + retval[len] = '\\'; ++len; } + if (retval != NULL) + retval[len] = *p; + ++len; } } |