vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 9b54976688eed26ec4b1203df5ac84fc51a3a2c4 parent 6b44d846760049f09a34cad13aa4ca2d930308e8 Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 23 Aug 2014 09:19:16 +0200 text: invalidate line <-> pos mapping upon undo/redo Diffstat:
| M | text.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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; }