0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0124: code has more indent than needed

Problem:    Code has more indent than needed.
Solution:   Use continue and return statements. (closes #10824)
This commit is contained in:
zeertzjq
2022-07-31 18:34:32 +01:00
committed by Bram Moolenaar
parent c146d974f1
commit 101d57b34b
8 changed files with 257 additions and 265 deletions

View File

@@ -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;
}
}