aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Chipman <rchipman@mit.edu>2015-06-27 14:09:00 -0400
committerRyan Chipman <rchipman@mit.edu>2015-06-28 11:27:05 -0400
commit85cc327f6e33e4ecab52ab9ea55914ae31129eed (patch)
tree6e2a60b1023e9247e6287d08b4a3d1930776a2a8
parent08213bc63c98190d331d00fc7fce5f3f975d0e36 (diff)
downloadvis-85cc327f6e33e4ecab52ab9ea55914ae31129eed.tar.gz
vis-85cc327f6e33e4ecab52ab9ea55914ae31129eed.tar.xz
Replace a->time with a->seq in history_traverse_to
-rw-r--r--text.c6
1 files changed, 3 insertions, 3 deletions
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;