summaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-31 12:30:50 -0700
committercflip <cflip@cflip.net>2023-01-31 12:30:50 -0700
commit16b949aa3147e3aaadb6888f574f6424d4c2d8f3 (patch)
treefa0dc9e332eb319e58186d334cfb843a2ee9ff2a /editor.h
parent757efb85045408e2601da0f53547941a40d2e960 (diff)
Add a function to handle changing the editor mode
This way any extra stuff such as clearing the command line buffer or setting the flag to ignore the extra first key can be automatically set.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor.h b/editor.h
index 52daa06..0ae0fae 100644
--- a/editor.h
+++ b/editor.h
@@ -55,6 +55,8 @@ void editor_delete_char(struct editor_state* editor);
void editor_add_line_above(struct editor_state* editor);
void editor_add_line_below(struct editor_state* editor);
+void editor_set_mode(struct editor_state *editor, enum editor_mode mode);
+
void editor_find(struct editor_state* editor);
void editor_scroll(struct editor_state* editor);
void editor_update_screen_size(struct editor_state *);