aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-08-23 09:19:16 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-08-23 09:19:16 +0200
commit6013d47b7aeea5e5fc8ee15b43e4f42123b1f495 (patch)
tree8a2a98c0e49d7b9a35dc1d83faeb4b95c1e33b39
parent28e94c3fe4a6ff51b769a3a179f0926b1de6e89b (diff)
downloadvis-6013d47b7aeea5e5fc8ee15b43e4f42123b1f495.tar.gz
vis-6013d47b7aeea5e5fc8ee15b43e4f42123b1f495.tar.xz
text: invalidate line <-> pos mapping upon undo/redo
-rw-r--r--text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.c b/text.c
index a401c62..31db71f 100644
--- a/text.c
+++ b/text.c
@@ -555,6 +555,7 @@ bool text_undo(Text *ed) {
}
action_push(&ed->redo, a);
+ lineno_cache_invalidate(&ed->lines);
return true;
}
@@ -568,6 +569,7 @@ bool text_redo(Text *ed) {
}
action_push(&ed->undo, a);
+ lineno_cache_invalidate(&ed->lines);
return true;
}