aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-02-06 02:46:23 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:45:49 +0300
commit6167ce6df2753d5474ad49aea19f5957128ab015 (patch)
tree525c160abf96abf5eae58a6bcfab46ae4d6cd728 /src/nvim/eval.c
parenta3b87fc19b652065d96cec8f571d3245f1fc2446 (diff)
downloadrneovim-6167ce6df2753d5474ad49aea19f5957128ab015.tar.gz
rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.tar.bz2
rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.zip
eval: Remove v:none
To get v:none back just rever this commit. This will not make json*() functions compatible with Vim though.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index dc7737e4ce..4919cc2ce8 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -368,7 +368,6 @@ static struct vimvar {
{ VV_NAME("false", VAR_SPECIAL), VV_RO },
{ VV_NAME("true", VAR_SPECIAL), VV_RO },
{ VV_NAME("null", VAR_SPECIAL), VV_RO },
- { VV_NAME("none", VAR_SPECIAL), VV_RO },
};
/* shorthand */
@@ -512,7 +511,6 @@ void eval_init(void)
set_vim_var_special(VV_FALSE, kSpecialVarFalse);
set_vim_var_special(VV_TRUE, kSpecialVarTrue);
- set_vim_var_special(VV_NONE, kSpecialVarNone);
set_vim_var_special(VV_NULL, kSpecialVarNull);
set_reg_var(0); // default for v:register is not 0 but '"'
@@ -16204,7 +16202,6 @@ static void f_type(typval_T *argvars, typval_T *rettv)
n = 6;
break;
}
- case kSpecialVarNone:
case kSpecialVarNull: {
n = 7;
break;
@@ -17520,7 +17517,6 @@ long get_tv_number_chk(typval_T *varp, int *denote)
return 1;
}
case kSpecialVarFalse:
- case kSpecialVarNone:
case kSpecialVarNull: {
return 0;
}