diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-13 21:31:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 21:31:00 +0800 |
commit | 02a4974418b7fb18c5034b7b2fc85ce4cde7d370 (patch) | |
tree | ba7855e0aa3708a3985a9235cdc290a6271d82c8 /src/nvim/eval/encode.c | |
parent | 33b49d5f55423a1a3174ad0ce42c4454871aa9f8 (diff) | |
download | rneovim-02a4974418b7fb18c5034b7b2fc85ce4cde7d370.tar.gz rneovim-02a4974418b7fb18c5034b7b2fc85ce4cde7d370.tar.bz2 rneovim-02a4974418b7fb18c5034b7b2fc85ce4cde7d370.zip |
vim-patch:7.4.1168 (#19645)
Problem: This doesn't give the right result: eval(string(v:true)). (Nikolay
Pavlov)
Solution: Make the string "v:true" instead of "true".
https://github.com/vim/vim/commit/f48aa160fdd7b8caa7678e1a2139244dd2bdc547
Diffstat (limited to 'src/nvim/eval/encode.c')
-rw-r--r-- | src/nvim/eval/encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c index 090939666d..bb514fba47 100644 --- a/src/nvim/eval/encode.c +++ b/src/nvim/eval/encode.c @@ -30,12 +30,12 @@ #include "nvim/vim.h" // For _() const char *const encode_bool_var_names[] = { - [kBoolVarTrue] = "true", - [kBoolVarFalse] = "false", + [kBoolVarTrue] = "v:true", + [kBoolVarFalse] = "v:false", }; const char *const encode_special_var_names[] = { - [kSpecialVarNull] = "null", + [kSpecialVarNull] = "v:null", }; #ifdef INCLUDE_GENERATED_DECLARATIONS |