tuc: utf-8 characters cannot be longer than 4 bytes - neatvi - [fork] simple vi-type editor with UTF-8 support
 (HTM) git clone git://src.adamsgaard.dk/neatvi
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit a7499618cabdde63d86afcb674bbca6f452cd540
 (DIR) parent 09ae245a5a3197522cab51d55914d331f8512de5
 (HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
       Date:   Mon, 23 May 2016 14:32:44 +0430
       
       uc: utf-8 characters cannot be longer than 4 bytes
       
       Diffstat:
         M uc.c                                |       4 ----
       
       1 file changed, 0 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/uc.c b/uc.c
       t@@ -18,10 +18,6 @@ int uc_len(char *s)
                        return 3;
                if (~c & 0x08)
                        return 4;
       -        if (~c & 0x04)
       -                return 5;
       -        if (~c & 0x02)
       -                return 6;
                return 1;
        }