From 506be16743cc5a049b9dcc640f2da74955f1ce2f Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Tue, 23 Jun 2015 20:36:01 +0200 Subject: Do not take a snapshot in text_range_write 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. --- text.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/text.c b/text.c index 0f2e466..c25b047 100644 --- a/text.c +++ b/text.c @@ -785,8 +785,6 @@ ssize_t text_range_write(Text *txt, Filerange *range, int fd) { } } out: - txt->saved_action = txt->history; - text_snapshot(txt); return size - rem; } -- cgit v1.2.3