]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.105 v7.3.105
authorBram Moolenaar <Bram@vim.org>
Sat, 22 Jan 2011 00:13:39 +0000 (01:13 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 22 Jan 2011 00:13:39 +0000 (01:13 +0100)
Problem:    Can't get the value of "b:changedtick" with getbufvar().
Solution:   Make it work. (Christian Brabandt)

src/eval.c
src/version.c

index a46789fdf0567f3eab76a3961bd8ff1e9e93d3e1..af4ba893ff54d589f281ed5168b7c65d865ea95b 100644 (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)
index 1cb55bfec1f77f6c979496ce34984014c189490f..c16a37435933f833dda48430ceb80748a92649f9 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    105,
 /**/
     104,
 /**/