vis

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

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

commit 456fd12007a7f43b4ab563ffc92c4afa3ffc89c0
parent 9f660a46b31bec8177e7d88893c8ba4330b801ed
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 16 Dec 2016 12:36:26 +0100

vis: add section about compile time configuration to :help output

Diffstat:
Mvis-cmds.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/vis-cmds.c b/vis-cmds.c @@ -692,6 +692,21 @@ static bool cmd_help(Vis *vis, Win *win, Command *cmd, const char *argv[], Curso } } + text_appendf(txt, "\n Compile time configuration\n\n"); + + const struct { + const char *name; + bool enabled; + } configs[] = { + { "Lua support: ", CONFIG_LUA }, + { "Lua LPeg statically built-in: ", CONFIG_LPEG }, + { "POSIX ACL support: ", CONFIG_ACL }, + { "SELinux support: ", CONFIG_SELINUX }, + }; + + for (size_t i = 0; i < LENGTH(configs); i++) + text_appendf(txt, " %-32s\t%s\n", configs[i].name, configs[i].enabled ? "yes" : "no"); + text_save(txt, NULL); return true; }