[dev] [PATCH][vis] Do not take a snapshot in text_range_write

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Tue, 23 Jun 2015 20:36:01 +0200

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
_AT_@ -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
Received on Tue Jun 23 2015 - 20:36:01 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 23 2015 - 20:48:09 CEST