aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}