summaryrefslogtreecommitdiff
path: root/src/dged/minibuffer.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-07-12 16:20:50 +0200
committerAlbert Cervin <albert@acervin.com>2023-10-19 22:41:33 +0200
commit54c9b4b533210b77be998f458ff96bdc54272f64 (patch)
treeeb434343bb1083172af50b7372d1e2745af00f8f /src/dged/minibuffer.h
parent3a8ae83aa13636679c151027cace905fa87ebd8e (diff)
downloaddged-54c9b4b533210b77be998f458ff96bdc54272f64.tar.gz
dged-54c9b4b533210b77be998f458ff96bdc54272f64.tar.xz
dged-54c9b4b533210b77be998f458ff96bdc54272f64.zip
big buffer/buffer_view rework
A buffer is only the text and the corresponding operation. A buffer view holds information about scroll, dot and mark positions. One way to think about it is that a buffer is stateless whereas a buffer view is stateful.
Diffstat (limited to 'src/dged/minibuffer.h')
-rw-r--r--src/dged/minibuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dged/minibuffer.h b/src/dged/minibuffer.h
index 98a4db8..fb6eae4 100644
--- a/src/dged/minibuffer.h
+++ b/src/dged/minibuffer.h
@@ -5,6 +5,7 @@
struct buffer;
struct command_ctx;
+struct command_list;
struct keymap;
/**
@@ -63,6 +64,7 @@ int32_t minibuffer_prompt_interactive(struct command_ctx command_ctx,
void *userdata, const char *fmt, ...);
void minibuffer_set_prompt(const char *fmt, ...);
+uint32_t minibuffer_draw_prompt(struct command_list *commands);
/**
* Evaluate the current contents of the minibuffer
@@ -106,3 +108,5 @@ bool minibuffer_displaying();
* @returns True if the minibuffer is currently focused, receiving user input.
*/
bool minibuffer_focused();
+
+struct window *minibuffer_target_window();