aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-08 22:40:18 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-08 22:49:32 +0800
commitd745433817499c34ccf230469417fb0ea29b7ab9 (patch)
tree45c2be735fcb86152e098c264436c8a6f29e862f /src/nvim/eval/typval.h
parent4ecf6fdfd857b52c0bab9a8dbfc760364ac2677b (diff)
downloadrneovim-d745433817499c34ccf230469417fb0ea29b7ab9.tar.gz
rneovim-d745433817499c34ccf230469417fb0ea29b7ab9.tar.bz2
rneovim-d745433817499c34ccf230469417fb0ea29b7ab9.zip
vim-patch:9.0.1522: some functions give two error messages
Problem: Some functions give two error messages. Solution: Do not give a second error message. (closes vim/vim#12352) https://github.com/vim/vim/commit/e4098457ab9c94225b1b0e3c5e06b82b75587971 It seems that tv_get_bool() is actually not exactly the same as tv_get_number(), so change it to a function instead. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval/typval.h')
-rw-r--r--src/nvim/eval/typval.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h
index 84e4067f9d..767fd706b3 100644
--- a/src/nvim/eval/typval.h
+++ b/src/nvim/eval/typval.h
@@ -567,8 +567,4 @@ EXTERN const size_t kTVTranslate INIT(= TV_TRANSLATE);
# include "eval/typval.h.generated.h"
#endif
-#define tv_get_bool tv_get_number
-#define tv_get_bool_chk tv_get_number_chk
-#define tv_dict_get_bool tv_dict_get_number_def
-
#endif // NVIM_EVAL_TYPVAL_H