From 85cc327f6e33e4ecab52ab9ea55914ae31129eed Mon Sep 17 00:00:00 2001 From: Ryan Chipman Date: Sat, 27 Jun 2015 14:09:00 -0400 Subject: Replace a->time with a->seq in history_traverse_to --- text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'text.c') diff --git a/text.c b/text.c index d7c9d40..4a03580 100644 --- 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; -- cgit v1.2.3