vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c7bb542a3830816b574ae7cb2aed1452a822d9a1 parent 3746838d7b7c521f666a5eec2a065e00725f422a Author: Ryan Chipman <rchipman@mit.edu> Date: Sat, 27 Jun 2015 14:09:00 -0400 Replace a->time with a->seq in history_traverse_to Diffstat:
| M | text.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/text.c b/text.c @@ -633,13 +633,13 @@ static size_t history_traverse_to(Text *txt, Action *a) { return pos; bool changed = history_change_branch(a); if (!changed) { - if (a->time == txt->history->time) { + if (a->seq == txt->history->seq) { return txt->lines.pos; - } else if (a->time > txt->history->time) { + } else if (a->seq > txt->history->seq) { while (txt->history != a) pos = text_redo(txt); return pos; - } else if (a->time < txt->history->time) { + } else if (a->seq < txt->history->seq) { while (txt->history != a) pos = text_undo(txt); return pos;