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