comparison src/structs.h @ 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 085f14642fe8
children 04736b4030ec
comparison
equal deleted inserted replaced
4286:afcc61d24129 4287:dc3efb6d5a08
1609 int b_start_bomb; /* 'bomb' when it was read */ 1609 int b_start_bomb; /* 'bomb' when it was read */
1610 #endif 1610 #endif
1611 1611
1612 #ifdef FEAT_EVAL 1612 #ifdef FEAT_EVAL
1613 dictitem_T b_bufvar; /* variable for "b:" Dictionary */ 1613 dictitem_T b_bufvar; /* variable for "b:" Dictionary */
1614 dict_T b_vars; /* internal variables, local to buffer */ 1614 dict_T *b_vars; /* internal variables, local to buffer */
1615 #endif 1615 #endif
1616 1616
1617 #if defined(FEAT_BEVAL) && defined(FEAT_EVAL) 1617 #if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
1618 char_u *b_p_bexpr; /* 'balloonexpr' local value */ 1618 char_u *b_p_bexpr; /* 'balloonexpr' local value */
1619 long_u b_p_bexpr_flags;/* flags for 'balloonexpr' */ 1619 long_u b_p_bexpr_flags;/* flags for 'balloonexpr' */
1755 int tp_diff_invalid; /* list of diffs is outdated */ 1755 int tp_diff_invalid; /* list of diffs is outdated */
1756 #endif 1756 #endif
1757 frame_T *(tp_snapshot[SNAP_COUNT]); /* window layout snapshots */ 1757 frame_T *(tp_snapshot[SNAP_COUNT]); /* window layout snapshots */
1758 #ifdef FEAT_EVAL 1758 #ifdef FEAT_EVAL
1759 dictitem_T tp_winvar; /* variable for "t:" Dictionary */ 1759 dictitem_T tp_winvar; /* variable for "t:" Dictionary */
1760 dict_T tp_vars; /* internal variables, local to tab page */ 1760 dict_T *tp_vars; /* internal variables, local to tab page */
1761 #endif 1761 #endif
1762 }; 1762 };
1763 1763
1764 /* 1764 /*
1765 * Structure to cache info for displayed lines in w_lines[]. 1765 * Structure to cache info for displayed lines in w_lines[].
2078 long w_scbind_pos; 2078 long w_scbind_pos;
2079 #endif 2079 #endif
2080 2080
2081 #ifdef FEAT_EVAL 2081 #ifdef FEAT_EVAL
2082 dictitem_T w_winvar; /* variable for "w:" Dictionary */ 2082 dictitem_T w_winvar; /* variable for "w:" Dictionary */
2083 dict_T w_vars; /* internal variables, local to window */ 2083 dict_T *w_vars; /* internal variables, local to window */
2084 #endif 2084 #endif
2085 2085
2086 #if defined(FEAT_RIGHTLEFT) && defined(FEAT_FKMAP) 2086 #if defined(FEAT_RIGHTLEFT) && defined(FEAT_FKMAP)
2087 int w_farsi; /* for the window dependent Farsi functions */ 2087 int w_farsi; /* for the window dependent Farsi functions */
2088 #endif 2088 #endif