updated for version 7.1-188
diff --git a/src/edit.c b/src/edit.c
index f528b96..2663e6e 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -550,7 +550,7 @@
 	i = showmode();
 
     if (!p_im && did_restart_edit == 0)
-	change_warning(i + 1);
+	change_warning(i == 0 ? 0 : i + 1);
 
 #ifdef CURSOR_SHAPE
     ui_cursor_shape();		/* may show different cursor shape */