diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-03 21:53:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-03 21:53:53 +0100 |
commit | 67977821270bd328cd37c4ace38fb97f21ad4fd5 (patch) | |
tree | d375fe3cda573c60199ab49b6b7bcf8bff4926a9 /runtime | |
parent | 2ef951dd31505874ae9ac35a18513ef34ae0ea3e (diff) |
patch 8.2.2291: Vim9: cannot use "null" for v:nullv8.2.2291
Problem: Vim9: cannot use "null" for v:null.
Solution: Support "null" like "true" and "false". (closes #7495)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/vim9.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index e13863a029..b30db0b869 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -1,4 +1,4 @@ -*vim9.txt* For Vim version 8.2. Last change: 2021 Jan 02 +*vim9.txt* For Vim version 8.2. Last change: 2021 Jan 03 VIM REFERENCE MANUAL by Bram Moolenaar @@ -640,11 +640,11 @@ always converted to string: > Simple types are string, float, special and bool. For other types |string()| can be used. - *false* *true* -In Vim9 script one can use "true" for v:true and "false" for v:false. When -converting a boolean to a string "false" and "true" are used, not "v:false" -and "v:true" like in legacy script. "v:none" and "v:null" are not changed, -they are only used in JSON. + *false* *true* *null* +In Vim9 script one can use "true" for v:true, "false" for v:false and "null" +for v:null. When converting a boolean to a string "false" and "true" are +used, not "v:false" and "v:true" like in legacy script. "v:none" is not +changed, it is only used in JSON and has no equivalent in other languages. Indexing a string with [idx] or [idx, idx] uses character indexes instead of byte indexes. Example: > |