Cleanup
This commit is contained in:
parent
432bc63baf
commit
988dd1e62b
|
@ -222,14 +222,13 @@ updateblock(Block *block, int sigval)
|
||||||
} else {
|
} else {
|
||||||
if (block->curtext[trd - 1] == '\n')
|
if (block->curtext[trd - 1] == '\n')
|
||||||
trd--;
|
trd--;
|
||||||
block->curtext[trd++] = block->signal;
|
if (memcmp(block->curtext, block->prvtext, trd + 1) != 0) {
|
||||||
if (memcmp(block->curtext, block->prvtext, trd) != 0) {
|
memcpy(block->prvtext, block->curtext, trd + 1);
|
||||||
memcpy(block->prvtext, block->curtext, trd);
|
|
||||||
if (!dirtyblock || block < dirtyblock)
|
if (!dirtyblock || block < dirtyblock)
|
||||||
dirtyblock = block;
|
dirtyblock = block;
|
||||||
}
|
}
|
||||||
if (!block->pathc)
|
if (block->pathc)
|
||||||
trd--;
|
block->curtext[trd++] = block->signal;
|
||||||
memcpy(block->curtext + trd, delimiter, DELIMITERLENGTH);
|
memcpy(block->curtext + trd, delimiter, DELIMITERLENGTH);
|
||||||
block->length = trd + DELIMITERLENGTH;
|
block->length = trd + DELIMITERLENGTH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue