summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-13 15:47:25 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-13 15:47:25 +0200
commit0c0eddd3ddd266bcc2036362fae7b2b8b9d2c7bf (patch)
treee4c0912ac6fd6632c69c19fc062e64b4e1970076 /src/evalfunc.c
parent4a021dfbeee88ac09d07e257912485314ecdcabe (diff)
downloadvim-git-0c0eddd3ddd266bcc2036362fae7b2b8b9d2c7bf.tar.gz
patch 8.2.0970: terminal properties are not available in Vim scriptv8.2.0970
Problem: Terminal properties are not available in Vim script. Solution: Add the terminalprops() function.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 1f5309510..fe9863659 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -944,6 +944,7 @@ static funcentry_T global_functions[] =
{"term_setsize", 3, 3, FEARG_1, ret_void, TERM_FUNC(f_term_setsize)},
{"term_start", 1, 2, FEARG_1, ret_number, TERM_FUNC(f_term_start)},
{"term_wait", 1, 2, FEARG_1, ret_void, TERM_FUNC(f_term_wait)},
+ {"terminalprops", 0, 0, 0, ret_dict_string, f_terminalprops},
{"test_alloc_fail", 3, 3, FEARG_1, ret_void, f_test_alloc_fail},
{"test_autochdir", 0, 0, 0, ret_void, f_test_autochdir},
{"test_feedinput", 1, 1, FEARG_1, ret_void, f_test_feedinput},