From 66d50bd7b04922a91fbe3e4d49c68070ec1a7b14 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Tue, 6 Dec 2022 12:58:51 +0100 Subject: Add minibuffer --- src/command.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h index 9515282..3e3bbfb 100644 --- a/src/command.h +++ b/src/command.h @@ -2,7 +2,12 @@ struct buffer; -typedef void (*command_fn)(struct buffer *buffer); +struct command_ctx { + struct buffer *current_buffer; +}; + +typedef void (*command_fn)(struct command_ctx ctx, int argc, + const char *argv[]); struct command { const char *name; -- cgit v1.2.3