Skip to content
Snippets Groups Projects
Commit e2f06b52 authored by rswindell's avatar rswindell
Browse files

Changed editor and shell properties to read as string values (internal code) instead of integers.

parent 15040e9f
No related branches found
No related tags found
No related merge requests found
......@@ -283,10 +283,13 @@ static JSBool js_user_get(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
val=user.freecdt;
break;
case USER_PROP_XEDIT:
val=user.xedit;
if(user.xedit>0 && user.xedit<=p->cfg->total_xedits)
s=p->cfg->xedit[user.xedit-1]->code;
else
s=""; /* internal editor */
break;
case USER_PROP_SHELL:
val=user.shell;
s=p->cfg->shell[user.shell]->code;
break;
case USER_PROP_QWK:
val=user.qwk;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment