X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fmenu.c;h=db1512ae30cc48d6f2ea87bc26a082a084551811;hb=1d239e9d330cd5f0af9c964c6380b78133e2f625;hp=9e69f1934836e17c85025387d4073746005012a8;hpb=b9dad99b0c2d6031ed92e9fc84b7ab352a794455;p=carl9170fw.git diff --git a/config/menu.c b/config/menu.c index 9e69f19..db1512a 100644 --- a/config/menu.c +++ b/config/menu.c @@ -584,7 +584,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop, for (j = 4; --i >= 0; j += 2) { menu = submenu[i]; if (head && location && menu == location) - jump->offset = r->len - 1; + jump->offset = strlen(r->s); str_printf(r, "%*c-> %s", j, ' ', _(menu_get_prompt(menu))); if (menu->sym) {