raster pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=3be6a3b812a0900f81b78167fdcd2c7de2478679
commit 3be6a3b812a0900f81b78167fdcd2c7de2478679 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Thu Nov 27 20:25:54 2014 +0900 terminology - fix warning of uninitialised var and fmtinhg in keybinds --- src/bin/keyin.c | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/src/bin/keyin.c b/src/bin/keyin.c index 3247326..dadac04 100644 --- a/src/bin/keyin.c +++ b/src/bin/keyin.c @@ -67,30 +67,17 @@ _key_try(Termpty *ty, const Tty_Key *map, int len, const Evas_Event_Key_Down *ev const struct _s *s; const Key_Values *kv; - if (!ty->state.appcursor) - { - kv = &map[i].default_mode; - } - else - { - kv = &map[i].cursor; - } - if (!alt && !ctrl && !shift) - s = &kv->plain; - else if (alt && !ctrl && !shift) - s = &kv->alt; - else if (!alt && ctrl && !shift) - s = &kv->ctrl; - else if (alt && ctrl && !shift) - s = &kv->ctrl_alt; - else if (!alt && !ctrl && shift) - s = &kv->shift; - else if (alt && !ctrl && shift) - s = &kv->shift_alt; - else if (!alt && ctrl && shift) - s = &kv->shift_ctrl; - else if (alt && ctrl && shift) - s = &kv->shift_ctrl_alt; + if (!ty->state.appcursor) kv = &map[i].default_mode; + else kv = &map[i].cursor; + if (!alt && !ctrl && !shift) s = &kv->plain; + else if (alt && !ctrl && !shift) s = &kv->alt; + else if (!alt && ctrl && !shift) s = &kv->ctrl; + else if (alt && ctrl && !shift) s = &kv->ctrl_alt; + else if (!alt && !ctrl && shift) s = &kv->shift; + else if (alt && !ctrl && shift) s = &kv->shift_alt; + else if (!alt && ctrl && shift) s = &kv->shift_ctrl; + else if (alt && ctrl && shift) s = &kv->shift_ctrl_alt; + else continue; termpty_write(ty, s->s, s->len); return EINA_TRUE; --
