Since text_range_write is called several times in cmd_filter, the undo
command does not undo the whole filter operation but only up to the
last call of text_range_write. Removing the snapshot-taking code solves
this issue.
---

This is a quick and dirty fix for the issues encountered with undoing
the filter command. There are still other issues to tackle though...

 text.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/text.c b/text.c
index eca86db..2580c13 100644
--- a/text.c
+++ b/text.c
@@ -687,8 +687,6 @@ ssize_t text_range_write(Text *txt, Filerange *range, int 
fd) {
                }
        }
 out:
-       txt->saved_action = txt->undo;
-       text_snapshot(txt);
        return size - rem;
 }
 
-- 
2.4.4


Reply via email to