mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1154
Problem: No support for JSON. Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true, v:null and v:none.
This commit is contained in:
@@ -1032,6 +1032,11 @@ static VALUE vim_to_ruby(typval_T *tv)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (tv->v_type == VAR_SPECIAL)
|
||||
{
|
||||
if (tv->vval.v_number <= VVAL_TRUE)
|
||||
result = INT2NUM(tv->vval.v_number);
|
||||
} /* else return Qnil; */
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user