summaryrefslogtreecommitdiff
path: root/lineset.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-31 11:49:06 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-31 11:49:06 +0100
commit7f6e62f77bca73e49dfa260ff7ac75770d1363c8 (patch)
tree849cf803a7e804ab879d41e161b69daf22987090 /lineset.c
parentf3100ddd486d6f39b0c97c9c492bb6020bf3caf1 (diff)
support line-by-line undo in text mode
Diffstat (limited to 'lineset.c')
-rw-r--r--lineset.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lineset.c b/lineset.c
index 75ae1d3..4b5ad8c 100644
--- a/lineset.c
+++ b/lineset.c
@@ -171,3 +171,8 @@ void copy_lines_to_ring(int y1, int y2, int which){
}
#endif
}
+
+void invalidate_undo(){
+ if (undo_lst > undo_cur)
+ undo_lst = undo_cur;
+}