aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-26 23:58:02 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-27 09:21:36 -0400
commit95f02cb587f9859fa558b59617b87a9808ec2cb9 (patch)
tree92c115758c2c25ecf6944cca77e71e198955a997 /runtime
parent25c0675fe343aa20e05c6cb26c2529d9dd9ac748 (diff)
downloadrneovim-95f02cb587f9859fa558b59617b87a9808ec2cb9.tar.gz
rneovim-95f02cb587f9859fa558b59617b87a9808ec2cb9.tar.bz2
rneovim-95f02cb587f9859fa558b59617b87a9808ec2cb9.zip
vim-patch:8.2.2388: no easy way to get the maximum or mininum number value
Problem: No easy way to get the maximum or mininum number value. Solution: Add v:numbermax and v:numbermin. https://github.com/vim/vim/commit/57d5a01cb45d6edb16c3835a49b42d6d8fc0163e
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 459e3ed2d2..f6ca0d5242 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1794,6 +1794,12 @@ v:null Special value used to put "null" in JSON and NIL in msgpack.
operator) and to zero when used as a Number (e.g. in |expr5|
or |expr7| when used with numeric operators). Read-only.
+ *v:numbermax* *numbermax-variable*
+v:numbermax Maximum value of a number.
+
+ *v:numbermix* *numbermix-variable*
+v:numbermin Minimum value of a number (negative)
+
*v:numbersize* *numbersize-variable*
v:numbersize Number of bits in a Number. This is normally 64, but on some
systems it may be 32.