Mercurial > vim
comparison src/fileio.c @ 4287:dc3efb6d5a08 v7.3.893
updated for version 7.3.893
Problem: Crash when using b:, w: or t: after closing the buffer, window or
tabpage.
Solution: Allocate the dictionary instead of having it part of the
buffer/window/tabpage struct. (Yukihiro Nakadaira)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 15 Apr 2013 12:27:36 +0200 |
parents | edd0bc1f26bd |
children | d8053e6bf72a |
comparison
equal
deleted
inserted
replaced
4286:afcc61d24129 | 4287:dc3efb6d5a08 |
---|---|
8953 curwin = aco->save_curwin; | 8953 curwin = aco->save_curwin; |
8954 else | 8954 else |
8955 /* Hmm, original window disappeared. Just use the first one. */ | 8955 /* Hmm, original window disappeared. Just use the first one. */ |
8956 curwin = firstwin; | 8956 curwin = firstwin; |
8957 # ifdef FEAT_EVAL | 8957 # ifdef FEAT_EVAL |
8958 vars_clear(&aucmd_win->w_vars.dv_hashtab); /* free all w: variables */ | 8958 vars_clear(&aucmd_win->w_vars->dv_hashtab); /* free all w: variables */ |
8959 hash_init(&aucmd_win->w_vars.dv_hashtab); /* re-use the hashtab */ | 8959 hash_init(&aucmd_win->w_vars->dv_hashtab); /* re-use the hashtab */ |
8960 # endif | 8960 # endif |
8961 #else | 8961 #else |
8962 curwin = aco->save_curwin; | 8962 curwin = aco->save_curwin; |
8963 #endif | 8963 #endif |
8964 curbuf = curwin->w_buffer; | 8964 curbuf = curwin->w_buffer; |