diff src/normal.c @ 775:f04f56979d84

updated for version 7.0227
author vimboss
date Fri, 17 Mar 2006 23:10:44 +0000
parents c0f1b710ce07
children 6897668c467f
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -7880,9 +7880,13 @@ nv_g_cmd(cap)
     /*
      * "g8": Display the bytes used for the UTF-8 character under the
      * cursor.	It is displayed in hex.
+     * "8g8" finds illegal byte sequence.
      */
     case '8':
-	show_utf8();
+	if (cap->count0 == 8)
+	    utf_find_illegal();
+	else
+	    show_utf8();
 	break;
 #endif