diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2018-01-08 21:45:53 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2018-01-08 22:17:02 +0100 |
commit | 099a49e6d5b79662eaa5c8367726302e639d5715 (patch) | |
tree | 41e736be52650c07cd457d73b1a284233be06f5b /degesch.c | |
parent | 4627ee82dd825690218317ab9e6a991c5afcfb42 (diff) | |
download | xK-099a49e6d5b79662eaa5c8367726302e639d5715.tar.gz xK-099a49e6d5b79662eaa5c8367726302e639d5715.tar.xz xK-099a49e6d5b79662eaa5c8367726302e639d5715.zip |
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.
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |