tvi: repeating case switching commands - 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 a7f36bdd3399c064e74f712a09f66ae464b4c192
 (DIR) parent 21fbb957e68be32c891d0acef4146ac095fe1654
 (HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
       Date:   Sun, 20 Nov 2016 18:25:58 +0330
       
       vi: repeating case switching commands
       
       Diffstat:
         M vi.c                                |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/vi.c b/vi.c
       t@@ -1291,7 +1291,8 @@ static void vi(void)
                                        continue;
                                }
                                cmd = term_cmd(&n);
       -                        if (strchr("!<>ACDIJOPRSXYacdioprsxy~", c)) {
       +                        if (strchr("!<>ACDIJOPRSXYacdioprsxy~", c) ||
       +                                        c == 'g' && strchr("uU~", k)) {
                                        if (n < sizeof(rep_cmd)) {
                                                memcpy(rep_cmd, cmd, n);
                                                rep_len = n;