diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-08-23 09:19:16 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-08-23 09:19:16 +0200 |
| commit | 6013d47b7aeea5e5fc8ee15b43e4f42123b1f495 (patch) | |
| tree | 8a2a98c0e49d7b9a35dc1d83faeb4b95c1e33b39 /text.c | |
| parent | 28e94c3fe4a6ff51b769a3a179f0926b1de6e89b (diff) | |
| download | vis-6013d47b7aeea5e5fc8ee15b43e4f42123b1f495.tar.gz vis-6013d47b7aeea5e5fc8ee15b43e4f42123b1f495.tar.xz | |
text: invalidate line <-> pos mapping upon undo/redo
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
