0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.3.105

Problem:    Can't get the value of "b:changedtick" with getbufvar().
Solution:   Make it work. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2011-01-22 01:13:39 +01:00
parent 4124e72373
commit 445edda2f9
2 changed files with 7 additions and 0 deletions

View File

@@ -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)