Mercurial > vim
changeset 2687:ef7fdb3c6927 v7.3.105
updated for version 7.3.105
Problem: Can't get the value of "b:changedtick" with getbufvar().
Solution: Make it work. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 22 Jan 2011 01:13:39 +0100 |
parents | 7b44c70ee8ab |
children | f016c3708ae3 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -10866,6 +10866,11 @@ f_getbufvar(argvars, rettv) if (*varname == '&') /* buffer-local-option */ get_option_tv(&varname, rettv, TRUE); + else if (STRCMP(varname, "changedtick") == 0) + { + rettv->v_type = VAR_NUMBER; + rettv->vval.v_number = curbuf->b_changedtick; + } else { if (*varname == NUL)