From 6013d47b7aeea5e5fc8ee15b43e4f42123b1f495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 23 Aug 2014 09:19:16 +0200 Subject: text: invalidate line <-> pos mapping upon undo/redo --- text.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text.c') 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; } -- cgit v1.2.3