diff src/edit.c @ 1473:5ba8e25f7fc1 v7.1.188

updated for version 7.1-188
author vimboss
date Wed, 02 Jan 2008 21:09:33 +0000
parents 48b22e2eb1ed
children 29c09fa57168
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -550,7 +550,7 @@ edit(cmdchar, startln, count)
 	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 */