diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-17 16:31:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-17 16:31:35 +0100 |
commit | 79518e2ace5fce7b9c49060e462a6e935dba0a84 (patch) | |
tree | 5a5b1284386ac2aff2f39f50238327a54b46a7c3 /src/memline.c | |
parent | 226c53429109f24e31c17016aedfd7fbf7a9aa50 (diff) |
patch 8.0.0334: can't access b:changedtick from a dict referencev8.0.0334
Problem: Can't access b:changedtick from a dict reference.
Solution: Make changedtick a member of the b: dict. (inspired by neovim
#6112)
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/memline.c b/src/memline.c index 244e69277f..5874b5d69d 100644 --- a/src/memline.c +++ b/src/memline.c @@ -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; } } |