diff options
author | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-19 18:38:25 +0200 |
---|---|---|
committer | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-26 19:32:32 +0200 |
commit | 54c4567564b788f211b55c0bdcee3f2cd3d982e8 (patch) | |
tree | 46e07f458a231ea7b142141952ff6e9c47fc174d /src/nvim/eval.c | |
parent | 83025f0028ee5b1b6e09340fa419999643e3f8f6 (diff) | |
download | rneovim-54c4567564b788f211b55c0bdcee3f2cd3d982e8.tar.gz rneovim-54c4567564b788f211b55c0bdcee3f2cd3d982e8.tar.bz2 rneovim-54c4567564b788f211b55c0bdcee3f2cd3d982e8.zip |
vim-patch:8.1.0679: sign functions do not take buffer argument as documented
Problem: Sign functions do not take buffer argument as documented.
Solution: Use get_buf_tv(). (Yegappan Lakshmanan, closes vim/vim#3755)
https://github.com/vim/vim/commit/2cbc1a02cb72916dfdbd0d307512c7c3fb766edf
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 076dbcf487..6d32382497 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -15507,7 +15507,7 @@ f_sign_getplaced(typval_T *argvars, typval_T *rettv) if (argvars[0].v_type != VAR_UNKNOWN) { // get signs placed in this buffer - buf = find_buffer(&argvars[0]); + buf = tv_get_buf(&argvars[0], FALSE); if (buf == NULL) { EMSG2(_("E158: Invalid buffer name: %s"), @@ -15599,7 +15599,7 @@ f_sign_place(typval_T *argvars, typval_T *rettv) goto cleanup; // Buffer to place the sign - buf = find_buffer(&argvars[3]); + buf = tv_get_buf(&argvars[3], FALSE); if (buf == NULL) { EMSG2(_("E158: Invalid buffer name: %s"), tv_get_string(&argvars[2])); @@ -15708,7 +15708,7 @@ f_sign_unplace(typval_T *argvars, typval_T *rettv) if ((di = tv_dict_find(dict, (char_u *)"buffer", -1)) != NULL) { - buf = find_buffer(&di->di_tv); + buf = tv_get_buf(&di->di_tv, FALSE); if (buf == NULL) { EMSG2(_("E158: Invalid buffer name: %s"), |