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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user