]> git.neil.brown.name Git - edlib.git/commitdiff
Ditto for emacs_str
authorNeilBrown <neil@brown.name>
Fri, 11 Dec 2015 23:01:57 +0000 (10:01 +1100)
committerNeilBrown <neil@brown.name>
Fri, 11 Dec 2015 23:01:57 +0000 (10:01 +1100)
Signed-off-by: NeilBrown <neil@brown.name>
mode-emacs.c

index 047751ab3518fe9dc47d429dca5248daef51af94..bd52b775e70c53fedeeba2321057026edc92bc29 100644 (file)
@@ -180,11 +180,14 @@ static struct str_command {
 REDEF_CMD(emacs_str)
 {
        struct str_command *sc = container_of(ci->comm, struct str_command, cmd);
-       struct cmd_info ci2;
+       struct cmd_info ci2 = {0};
 
-       ci2 = *ci;
        ci2.key = sc->type;
        ci2.str = sc->str;
+       ci2.focus = ci->focus;
+       ci2.numeric = ci->numeric;
+       ci2.extra = ci->extra;
+       ci2.mark = ci->mark;
        return key_handle_focus(&ci2);
 }