summaryrefslogtreecommitdiff
path: root/src/ex.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2018-04-15 00:11:00 +0200
committerDaniel Carl <danielcarl@gmx.de>2018-04-15 00:11:00 +0200
commit1b85f0d2617cb838a354831b0450d4b01d67348c (patch)
tree33afbc78b1a2613fa6949da8671d64f38e98cf68 /src/ex.c
parentca0f51cb9da1fe39e00931f199bbfaf36dc0349e (diff)
Do not propagate the shortcut struct.
Diffstat (limited to 'src/ex.c')
-rw-r--r--src/ex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex.c b/src/ex.c
index 3520b20..94d3d7d 100644
--- a/src/ex.c
+++ b/src/ex.c
@@ -1099,18 +1099,18 @@ static VbCmdResult ex_shortcut(Client *c, const ExArg *arg)
*uri++ = '\0'; /* devide key and uri */
g_strstrip(arg->rhs->str);
g_strstrip(uri);
- success = shortcut_add(c, arg->rhs->str, uri);
+ success = shortcut_add(c->config.shortcuts, arg->rhs->str, uri);
}
break;
case EX_SCR:
g_strstrip(arg->rhs->str);
- success = shortcut_remove(c, arg->rhs->str);
+ success = shortcut_remove(c->config.shortcuts, arg->rhs->str);
break;
case EX_SCD:
g_strstrip(arg->rhs->str);
- success = shortcut_set_default(c, arg->rhs->str);
+ success = shortcut_set_default(c->config.shortcuts, arg->rhs->str);
break;
default:
@@ -1236,7 +1236,7 @@ static gboolean complete(Client *c, short direction)
case EX_SCR: /* Fallthrough */
case EX_SCD:
- found = shortcut_fill_completion(c, store, token);
+ found = shortcut_fill_completion(c->config.shortcuts, store, token);
break;
case EX_HANDREM: