0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0334: can't access b:changedtick from a dict reference

Problem:    Can't access b:changedtick from a dict reference.
Solution:   Make changedtick a member of the b: dict. (inspired by neovim
            #6112)
This commit is contained in:
Bram Moolenaar
2017-02-17 16:31:35 +01:00
parent 226c534291
commit 79518e2ace
20 changed files with 200 additions and 178 deletions

View File

@@ -1148,11 +1148,11 @@ ml_recover(void)
len = (int)STRLEN(fname);
if (len >= 4 &&
#if defined(VMS)
STRNICMP(fname + len - 4, "_s" , 2)
STRNICMP(fname + len - 4, "_s", 2)
#else
STRNICMP(fname + len - 4, ".s" , 2)
STRNICMP(fname + len - 4, ".s", 2)
#endif
== 0
== 0
&& vim_strchr((char_u *)"UVWuvw", fname[len - 2]) != NULL
&& ASCII_ISALPHA(fname[len - 1]))
{
@@ -1649,7 +1649,7 @@ ml_recover(void)
if (!(curbuf->b_ml.ml_line_count == 2 && *ml_get(1) == NUL))
{
changed_int();
++curbuf->b_changedtick;
++*curbuf->b_changedtick;
}
}
else
@@ -1663,7 +1663,7 @@ ml_recover(void)
if (i != 0)
{
changed_int();
++curbuf->b_changedtick;
++*curbuf->b_changedtick;
break;
}
}