vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit b4d12c4f83963ea75046005bc21521b4d6b21734
parent 87f99e40865b591f52d54bc56fda8487fdfc72ac
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 10 Jul 2015 15:39:31 +0200

vis: fix detection of file changes outside the editor

Diffstat:
Mvis.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vis.c b/vis.c @@ -1698,10 +1698,10 @@ static bool cmd_write(Filerange *range, enum CmdOpt opt, const char *argv[]) { editor_info_show(vis, "Can't write `%s'", *name); return false; } - if (!file->name) { + if (!file->name) editor_window_name(vis->win, *name); + if (strcmp(file->name, *name) == 0) file->stat = text_stat(text); - } } return true; }