vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 17e5603e3989cd32863fa3ec2fa2da5cbbb2fa72 parent 04d6bd0635b1b8c4e835e624d32cfb4eee9e365f Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 19 Sep 2016 14:18:00 +0200 vis: do not invoke file save event for internal files Diffstat:
| M | sam.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sam.c b/sam.c @@ -1103,7 +1103,7 @@ static bool cmd_write(Vis *vis, Win *win, Command *cmd, const char *argv[], Curs file_name_set(file, *name); if (strcmp(file->name, *name) == 0) file->stat = text_stat(text); - if (vis->event && vis->event->file_save) + if (!file->internal && vis->event && vis->event->file_save) vis->event->file_save(vis, file); } return true;