degesch: fix a minor bug in buffer_merge()
The pointer to the last item in the linked list wasn't always fixed, although nothing really touched it afterwards.
This commit is contained in:
parent
4627ee82dd
commit
099a49e6d5
|
@ -4221,8 +4221,7 @@ buffer_merge (struct app_context *ctx,
|
|||
merged->lines = NULL;
|
||||
else if (start->prev)
|
||||
start->prev->next = NULL;
|
||||
if (start == merged->lines_tail)
|
||||
merged->lines_tail = start->prev;
|
||||
merged->lines_tail = start->prev;
|
||||
merged->lines_count -= n;
|
||||
|
||||
// And append them to current lines in the buffer
|
||||
|
|
Loading…
Reference in New Issue