Mercurial > vim
changeset 1576:b76637e5ace1 v7.1.289
updated for version 7.1-289
author | vimboss |
---|---|
date | Tue, 01 Apr 2008 12:53:43 +0000 |
parents | 0e3e601e66cf |
children | 3ee896333e3e |
files | src/misc2.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -751,7 +751,7 @@ vim_mem_profile_dump() #endif /* - * Note: if unsinged is 16 bits we can only allocate up to 64K with alloc(). + * Note: if unsigned is 16 bits we can only allocate up to 64K with alloc(). * Use lalloc for larger blocks. */ char_u * @@ -1082,7 +1082,11 @@ free_all_mem() win_free_all(); #endif - /* Free all buffers. */ + /* Free all buffers. Reset 'autochdir' to avoid accessing things that + * were freed already. */ +#ifdef FEAT_AUTOCHDIR + p_acd = FALSE; +#endif for (buf = firstbuf; buf != NULL; ) { nextbuf = buf->b_next;