Mercurial > vim
diff src/textprop.c @ 15355:73b153ed5af8 v8.1.0685
patch 8.1.0685: get_buf_tv() is named inconsistently
commit https://github.com/vim/vim/commit/f2d79fa92d0ed90732f52dd88da4ad66c2c5ce13
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 3 22:19:27 2019 +0100
patch 8.1.0685: get_buf_tv() is named inconsistently
Problem: get_buf_tv() is named inconsistently.
Solution: Rename it to tv_get_buf(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/3759)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Jan 2019 22:30:06 +0100 |
parents | 21580db06cf3 |
children | 273649cad196 |
line wrap: on
line diff
--- a/src/textprop.c +++ b/src/textprop.c @@ -130,7 +130,7 @@ get_bufnr_from_arg(typval_T *arg, buf_T di = dict_find(arg->vval.v_dict, (char_u *)"bufnr", -1); if (di != NULL) { - *buf = get_buf_tv(&di->di_tv, FALSE); + *buf = tv_get_buf(&di->di_tv, FALSE); if (*buf == NULL) return FAIL; } @@ -533,7 +533,7 @@ f_prop_remove(typval_T *argvars, typval_ di = dict_find(dict, (char_u *)"bufnr", -1); if (di != NULL) { - buf = get_buf_tv(&di->di_tv, FALSE); + buf = tv_get_buf(&di->di_tv, FALSE); if (buf == NULL) return; }