aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 2e8fc7a6bb..7e155f9b4f 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -476,7 +476,9 @@ static void ui_mode_change(void)
return;
}
/* Get a simple UI mode out of State. */
- if (State & INSERT)
+ if ((State & REPLACE) == REPLACE)
+ mode = REPLACE;
+ else if (State & INSERT)
mode = INSERT;
else
mode = NORMAL;