vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 1cc8800b2566838ae2492e4c502e42f5010bdb91 parent 6b11a9bb16e7e468e5b2f5aba025c3599ee741db Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 10 Jan 2017 20:56:16 +0100 vis: add process id to :help output Diffstat:
| M | vis-cmds.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis-cmds.c b/vis-cmds.c @@ -661,7 +661,7 @@ static bool cmd_help(Vis *vis, Win *win, Command *cmd, const char *argv[], Curso Text *txt = vis->win->file->text; - text_appendf(txt, "vis %s\n\n", VERSION); + text_appendf(txt, "vis %s (PID: %ld)\n\n", VERSION, (long)getpid()); text_appendf(txt, " Modes\n\n"); for (int i = 0; i < LENGTH(vis_modes); i++) {