vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit f9c4c1eec4a98eb84c16e5730f69467f9ecb8194 parent c7bb542a3830816b574ae7cb2aed1452a822d9a1 Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 28 Jun 2015 21:46:28 +0200 Fix copy/paste error in text_restore This really needs some unit tests. Diffstat:
| M | text.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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); }