summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-03 08:29:02 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-03 08:29:02 +0900
commit40e2ca168a16f89bd2a64e6ecdfbba5e0496403a (patch)
tree4f6fd07d7b6b6422765f817a69a74ab9d2c4df5a /src/bin/keyin.c
parenta92582126ff797ca8ff4fcc83b744e894a2c4f9d (diff)
terminology - let's stop spewing out a warning all the time in keyin.c
Diffstat (limited to 'src/bin/keyin.c')
-rw-r--r--src/bin/keyin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index 60bbc4e..d33f142 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -64,7 +64,7 @@ _key_try(Termpty *ty, const Tty_Key *map, int len, const Evas_Event_Key_Down *ev
64 { 64 {
65 if ((inlen == map[i].key_len) && (!memcmp(ev->key, map[i].key, inlen))) 65 if ((inlen == map[i].key_len) && (!memcmp(ev->key, map[i].key, inlen)))
66 { 66 {
67 const struct _s *s; 67 const struct _s *s = NULL;
68 const Key_Values *kv; 68 const Key_Values *kv;
69 69
70 if (!ty->state.appcursor) kv = &map[i].default_mode; 70 if (!ty->state.appcursor) kv = &map[i].default_mode;
@@ -78,7 +78,7 @@ _key_try(Termpty *ty, const Tty_Key *map, int len, const Evas_Event_Key_Down *ev
78 else if (!alt && ctrl && shift) s = &kv->shift_ctrl; 78 else if (!alt && ctrl && shift) s = &kv->shift_ctrl;
79 else if (alt && ctrl && shift) s = &kv->shift_ctrl_alt; 79 else if (alt && ctrl && shift) s = &kv->shift_ctrl_alt;
80 80
81 termpty_write(ty, s->s, s->len); 81 if (s) termpty_write(ty, s->s, s->len);
82 return EINA_TRUE; 82 return EINA_TRUE;
83 } 83 }
84 } 84 }