0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2339: cannot get the type of a value as a string

Problem:    Cannot get the type of a value as a string.
Solution:   Add typename().
This commit is contained in:
Bram Moolenaar
2021-01-12 21:49:00 +01:00
parent 64ed4d4398
commit a47e05f04a
8 changed files with 52 additions and 4 deletions

View File

@@ -1742,6 +1742,8 @@ static funcentry_T global_functions[] =
ret_float, FLOAT_FUNC(f_trunc)},
{"type", 1, 1, FEARG_1, NULL,
ret_number, f_type},
{"typename", 1, 1, FEARG_1, NULL,
ret_string, f_typename},
{"undofile", 1, 1, FEARG_1, NULL,
ret_string, f_undofile},
{"undotree", 0, 0, 0, NULL,