diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-07-31 11:49:06 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-07-31 11:49:06 +0100 |
commit | 7f6e62f77bca73e49dfa260ff7ac75770d1363c8 (patch) | |
tree | 849cf803a7e804ab879d41e161b69daf22987090 /lineset.c | |
parent | f3100ddd486d6f39b0c97c9c492bb6020bf3caf1 (diff) |
support line-by-line undo in text mode
Diffstat (limited to 'lineset.c')
-rw-r--r-- | lineset.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; +} |