Removed a bug in updatestatus
This commit is contained in:
parent
06771d24e5
commit
076d8ebd5c
|
@ -220,6 +220,8 @@ updatestatus()
|
||||||
str += i;
|
str += i;
|
||||||
if (current->pathc && current->signal)
|
if (current->pathc && current->signal)
|
||||||
str++;
|
str++;
|
||||||
|
if (*str == '\0')
|
||||||
|
goto update2;
|
||||||
str += delimlength;
|
str += delimlength;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -238,6 +240,7 @@ update1:
|
||||||
} while (NOTATCMDOUTEND(current, i));
|
} while (NOTATCMDOUTEND(current, i));
|
||||||
if (current->pathc && current->signal)
|
if (current->pathc && current->signal)
|
||||||
*(str++) = current->signal;
|
*(str++) = current->signal;
|
||||||
|
update2:
|
||||||
for (i = 0; delim[i]; i++)
|
for (i = 0; delim[i]; i++)
|
||||||
*(str++) = delim[i];
|
*(str++) = delim[i];
|
||||||
*(str++) = '\n';
|
*(str++) = '\n';
|
||||||
|
|
Loading…
Reference in a new issue