diff options
author | portix <portix@gmx.net> | 2012-11-17 13:22:29 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-11-17 13:22:29 +0100 |
commit | 5cbbd98a840530e2945af98268ec47ccaf3ded22 (patch) | |
tree | 318b8a0d485d7109ab765c464d45898972a48978 /src | |
parent | a343ebd88ba2fc210c38481b86636f5722098c24 (diff) | |
download | dwb-5cbbd98a840530e2945af98268ec47ccaf3ded22.zip |
Use POST_SM for functions binded in scripts
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c index 4651a946..80894377 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -738,7 +738,7 @@ global_bind(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size Key key = dwb_str_to_key(keystr); map->key = key.str; map->mod = key.mod; - FunctionMap fm = { { name, callback }, option, (Func)scripts_eval_key, NULL, ALWAYS_SM, { .arg = func }, EP_NONE, {NULL} }; + FunctionMap fm = { { name, callback }, option, (Func)scripts_eval_key, NULL, POST_SM, { .arg = func }, EP_NONE, {NULL} }; *fmap = fm; map->map = fmap; dwb.keymap = g_list_prepend(dwb.keymap, map); @@ -941,6 +941,7 @@ global_tab_complete(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, siz entry_focus(); completion_complete(COMP_SCRIPT, false); + error_out: for (GList *l = dwb.state.script_completion; l; l=l->next) { n = l->data; |