Improvement in updatestatus
This commit is contained in:
parent
59fb64655f
commit
20395ec3da
|
@ -241,12 +241,13 @@ updatestatus()
|
||||||
{
|
{
|
||||||
static char statustext[STATUSLENGTH + DELIMITERLENGTH];
|
static char statustext[STATUSLENGTH + DELIMITERLENGTH];
|
||||||
char *s = statustext;
|
char *s = statustext;
|
||||||
|
Block *block;
|
||||||
|
|
||||||
if (!dirtyblock)
|
if (!dirtyblock)
|
||||||
return;
|
return;
|
||||||
for (Block *block = blocks; block < dirtyblock; block++)
|
for (block = blocks; block < dirtyblock; block++)
|
||||||
s += block->length;
|
s += block->length;
|
||||||
for (Block *block = dirtyblock; block->pathu; block++) {
|
for (; block->pathu; block++) {
|
||||||
memcpy(s, block->curtext, block->length);
|
memcpy(s, block->curtext, block->length);
|
||||||
s += block->length;
|
s += block->length;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue