Mercurial > vim
comparison src/terminal.c @ 19633:dd3e5533a7d2 v8.2.0373
patch 8.2.0373: type of term_sendkeys() is unknown
Commit: https://github.com/vim/vim/commit/3a05ce63feae040cd817be289e84c2a7e653d59d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 11 19:30:01 2020 +0100
patch 8.2.0373: type of term_sendkeys() is unknown
Problem: Type of term_sendkeys() is unknown.
Solution: Just return zero. (closes https://github.com/vim/vim/issues/5762)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 11 Mar 2020 21:31:04 +0100 |
parents | 804322d6c6ba |
children | 8514e8b7e661 |
comparison
equal
deleted
inserted
replaced
19632:182d7acd6737 | 19633:dd3e5533a7d2 |
---|---|
5744 | 5744 |
5745 /* | 5745 /* |
5746 * "term_sendkeys(buf, keys)" function | 5746 * "term_sendkeys(buf, keys)" function |
5747 */ | 5747 */ |
5748 void | 5748 void |
5749 f_term_sendkeys(typval_T *argvars, typval_T *rettv) | 5749 f_term_sendkeys(typval_T *argvars, typval_T *rettv UNUSED) |
5750 { | 5750 { |
5751 buf_T *buf = term_get_buf(argvars, "term_sendkeys()"); | 5751 buf_T *buf = term_get_buf(argvars, "term_sendkeys()"); |
5752 char_u *msg; | 5752 char_u *msg; |
5753 term_T *term; | 5753 term_T *term; |
5754 | 5754 |
5755 rettv->v_type = VAR_UNKNOWN; | |
5756 if (buf == NULL) | 5755 if (buf == NULL) |
5757 return; | 5756 return; |
5758 | 5757 |
5759 msg = tv_get_string_chk(&argvars[1]); | 5758 msg = tv_get_string_chk(&argvars[1]); |
5760 if (msg == NULL) | 5759 if (msg == NULL) |