vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 15cd15c7b311de3f2fabd5deee13b4557cf0a9f7 parent 5e9c74807e9716b58ee6cfd9b06618098b47364d Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 7 Feb 2016 23:13:54 +0100 vis: mark output of pipe command as saved Diffstat:
| M | vis-cmds.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/vis-cmds.c b/vis-cmds.c @@ -913,6 +913,9 @@ static bool cmd_pipe(Vis *vis, Filerange *range, enum CmdOpt opt, const char *ar buffer_release(&filter.err); + if (filter.txt) + text_save(filter.txt, NULL); + return !vis->cancel_filter && status == 0; }