Mercurial > vim
diff src/evalfunc.c @ 11846:1c65cad8b967 v8.0.0803
patch 8.0.0804: terminal window functions not yet implemented
commit https://github.com/vim/vim/commit/c6df10e5d33ffab2c392626e285317ea8241ebff
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 29 20:15:08 2017 +0200
patch 8.0.0804: terminal window functions not yet implemented
Problem: Terminal window functions not yet implemented.
Solution: Implement several functions. Add a first test. (Yasuhiro
Matsumoto, closes #1871)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 29 Jul 2017 20:30:04 +0200 |
parents | 5a07a3ff56c1 |
children | f5968ca369b5 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -830,6 +830,17 @@ static struct fst {"tanh", 1, 1, f_tanh}, #endif {"tempname", 0, 0, f_tempname}, +#ifdef FEAT_TERMINAL + {"term_getattr", 2, 2, f_term_getattr}, + {"term_getjob", 1, 1, f_term_getjob}, + {"term_getline", 2, 2, f_term_getline}, + {"term_getsize", 1, 1, f_term_getsize}, + {"term_list", 0, 0, f_term_list}, + {"term_scrape", 2, 2, f_term_scrape}, + {"term_sendkeys", 2, 2, f_term_sendkeys}, + {"term_start", 1, 2, f_term_start}, + {"term_wait", 1, 1, f_term_wait}, +#endif {"test_alloc_fail", 3, 3, f_test_alloc_fail}, {"test_autochdir", 0, 0, f_test_autochdir}, {"test_garbagecollect_now", 0, 0, f_test_garbagecollect_now}, @@ -1540,7 +1551,7 @@ buflist_find_by_name(char_u *name, int c /* * Get buffer by number or pattern. */ - static buf_T * + buf_T * get_buf_tv(typval_T *tv, int curtab_only) { char_u *name = tv->vval.v_string;