aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2015-06-23 20:36:01 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-03 13:55:43 +0200
commit506be16743cc5a049b9dcc640f2da74955f1ce2f (patch)
treed94ea074ddfd2a4b91614f3c0ce76191a68f1392 /text.c
parent58ef482f9fd42e07c3b2816a9f111205edb8327f (diff)
downloadvis-506be16743cc5a049b9dcc640f2da74955f1ce2f.tar.gz
vis-506be16743cc5a049b9dcc640f2da74955f1ce2f.tar.xz
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.
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 0 insertions, 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;
}