vis

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

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

commit d97a9fb2f4165a4683f976c477b43d4424cae23a
parent 05b028983ef0d202945321a5c1c483f2b3da8c3f
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 12 Sep 2014 16:02:22 +0200

Add some more API comments

Diffstat:
Meditor.h | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/editor.h b/editor.h @@ -140,14 +140,19 @@ void editor_window_vsplit(Editor*, const char *filename); /* focus the next / previous window */ void editor_window_next(Editor*); void editor_window_prev(Editor*); + +/* display a user prompt with a certain title */ +void editor_prompt_show(Editor *vis, const char *title); +/* hide the user prompt if it is currently shown */ +void editor_prompt_hide(Editor *vis); /* return the content of the command prompt in a malloc(3)-ed string * which the call site has to free. */ char *editor_prompt_get(Editor *vis); /* replace the current command line content with the one given */ void editor_prompt_set(Editor *vis, const char *line); -void editor_prompt_show(Editor *vis, const char *title); -void editor_prompt_hide(Editor *vis); +/* register a callback which is called whenever the statusbar needs to + * be redrawn */ void editor_statusbar_set(Editor*, void (*statusbar)(EditorWin*)); /* look up a curses color pair for the given combination of fore and