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:
@@ -10866,6 +10866,11 @@ f_getbufvar(argvars, rettv)
|
|||||||
|
|
||||||
if (*varname == '&') /* buffer-local-option */
|
if (*varname == '&') /* buffer-local-option */
|
||||||
get_option_tv(&varname, rettv, TRUE);
|
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
|
else
|
||||||
{
|
{
|
||||||
if (*varname == NUL)
|
if (*varname == NUL)
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
105,
|
||||||
/**/
|
/**/
|
||||||
104,
|
104,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user