aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c4
-rw-r--r--src/io.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 0c8a813..4f6838f 100644
--- a/src/config.c
+++ b/src/config.c
@@ -32,8 +32,8 @@ int l_set(lua_State* L) {
key = lua_tonumber(L, -1);
}
*config_map[ind].value = key;
- lua_pushnumber(L, 1);
- return 1;
+ //lua_pushnumber(L, 1);
+ //return 1;
}
lua_pop(L,1);
}
diff --git a/src/io.c b/src/io.c
index 8250ad1..27d85cc 100644
--- a/src/io.c
+++ b/src/io.c
@@ -110,7 +110,7 @@ void i_pprint(lua_State* L, int indent, int skip_indent){
for(;lua_next(L,last_idx) != 0;){
if(lua_type(L,-2) == LUA_TSTRING){
if(!skip) print_indentation(indent);
- printf(" %s"color_gray": "color_reset, lua_tostring(L,-2));
+ printf(" '%s'"color_gray": "color_reset, lua_tostring(L,-2));
}
i_pprint(L,indent+1,1);
printf(",");
@@ -192,7 +192,7 @@ void json_parse(lua_State* L, str* raw){
int i = 1;
for(i = 1; i != raw->len - 1; i++){
topush[0] = *(raw->c + i);
- if(state == normal && (topush[0] == ' ' || topush[0] == '\n')) continue;
+ if(state == normal && (topush[0] == ' ' || topush[0] == '\n' || topush[0] <= 10)) continue;
switch(topush[0]){
case '"':