diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-06-28 21:46:28 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-06-28 21:46:28 +0200 |
| commit | fcfa1fb2c0a51c557fbb39c145556c46f8427b74 (patch) | |
| tree | 9e9c54886d1d43de2efec6baae529bd54cbd4eb7 /text.c | |
| parent | 85cc327f6e33e4ecab52ab9ea55914ae31129eed (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
