aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-06-28 21:46:28 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-06-28 21:46:28 +0200
commitfcfa1fb2c0a51c557fbb39c145556c46f8427b74 (patch)
tree9e9c54886d1d43de2efec6baae529bd54cbd4eb7 /text.c
parent85cc327f6e33e4ecab52ab9ea55914ae31129eed (diff)
downloadvis-fcfa1fb2c0a51c557fbb39c145556c46f8427b74.tar.gz
vis-fcfa1fb2c0a51c557fbb39c145556c46f8427b74.tar.xz
Fix copy/paste error in text_restore
This really needs some unit tests.
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 4a03580..d6ba166 100644
--- a/text.c
+++ b/text.c
@@ -679,7 +679,7 @@ size_t text_restore(Text *txt, time_t time) {
if (a->earlier && a->earlier != txt->history && labs(a->earlier->time - time) < diff)
a = a->earlier;
if (a->later && a->later != txt->history && labs(a->later->time - time) < diff)
- a = a->earlier;
+ a = a->later;
return history_traverse_to(txt, a);
}