diff options
author | cflip <cflip@cflip.net> | 2023-01-12 12:32:12 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-12 12:32:12 -0700 |
commit | 2021a3c4c0cd13d3a4f5ac097badb2eaedea1013 (patch) | |
tree | be105f5f1095fadd19d223f6b3913e44f1dfaad3 /editor.c | |
parent | c59f63a5be50c54ca4f38f48e2dc82d8d8fd012a (diff) |
Add an indicator to the status bar when in insert mode
Diffstat (limited to 'editor.c')
-rw-r--r-- | editor.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -318,6 +318,11 @@ void editor_draw_status_bar(struct editor_state* editor, struct append_buffer* b void editor_draw_message_bar(struct editor_state* editor, struct append_buffer* buffer) { + if (editor->mode == EDITOR_MODE_INSERT) { + ab_append(buffer, "--INSERT--", 10); + return; + } + int message_length = strlen(editor->status_message); if (message_length > editor->screen_cols) |