diff options
Diffstat (limited to 'src/scripts.c')
-rw-r--r-- | src/scripts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c index f66e7340..2c8960be 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -822,7 +822,10 @@ global_tab_complete(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, siz js_make_exception(ctx, exc, EXCEPTION("tabComplete: arguments[2] is not a function.")); return JSValueMakeUndefined(ctx); } - + dwb.state.script_comp_readonly = false; + if (argc > 3 && JSValueIsBoolean(ctx, argv[3])) { + dwb.state.script_comp_readonly = JSValueToBoolean(ctx, argv[3]); + } char *left, *right, *label; js_array_iterator iter; JSValueRef val; |