From 68a899b8faf83cc7c0f00def991acb28dc6d7135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 10 Jan 2017 20:57:55 +0100 Subject: vis: add valid marks to :help output --- vis-cmds.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vis-cmds.c') diff --git a/vis-cmds.c b/vis-cmds.c index b69fc21..cdff8c0 100644 --- a/vis-cmds.c +++ b/vis-cmds.c @@ -683,6 +683,11 @@ static bool cmd_help(Vis *vis, Win *win, Command *cmd, const char *argv[], Curso text_appendf(txt, "\n :-Commands\n\n"); map_iterate(vis->cmds, print_cmd, txt); + text_appendf(txt, "\n Marks\n\n"); + text_appendf(txt, " a-z General purpose marks\n"); + for (size_t i = 0; i < LENGTH(vis_marks); i++) + text_appendf(txt, " %c %s\n", vis_marks[i].name, vis_marks[i].help); + text_appendf(txt, "\n :set command options\n\n"); for (int i = 0; i < LENGTH(options); i++) { char names[256]; -- cgit v1.2.3