diff options
| author | cflip <cflip@cflip.net> | 2023-01-31 12:30:50 -0700 |
|---|---|---|
| committer | cflip <cflip@cflip.net> | 2023-01-31 12:30:50 -0700 |
| commit | 16b949aa3147e3aaadb6888f574f6424d4c2d8f3 (patch) | |
| tree | fa0dc9e332eb319e58186d334cfb843a2ee9ff2a /editor.h | |
| parent | 757efb85045408e2601da0f53547941a40d2e960 (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 *); |
