summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor.c b/editor.c
index d52d553..ade6a77 100644
--- a/editor.c
+++ b/editor.c
@@ -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)