From 746ebd3b6a2ad53dc0caf0872e7895d0cab966e1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 16 Jun 2009 14:01:43 +0000 Subject: updated for version 7.2-203 --- src/structs.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h index 95b5e6263..6d6c1d838 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1621,6 +1621,14 @@ struct diffblock_S }; #endif +#define SNAP_HELP_IDX 0 +#ifdef FEAT_AUTOCMD +# define SNAP_AUCMD_IDX 1 +# define SNAP_COUNT 2 +#else +# define SNAP_COUNT 1 +#endif + /* * Tab pages point to the top frame of each tab page. * Note: Most values are NOT valid for the current tab page! Use "curwin", @@ -1649,7 +1657,7 @@ struct tabpage_S buf_T *(tp_diffbuf[DB_COUNT]); int tp_diff_invalid; /* list of diffs is outdated */ #endif - frame_T *tp_snapshot; /* window layout snapshot */ + frame_T *(tp_snapshot[SNAP_COUNT]); /* window layout snapshots */ #ifdef FEAT_EVAL dictitem_T tp_winvar; /* variable for "t:" Dictionary */ dict_T tp_vars; /* internal variables, local to tab page */ @@ -2276,16 +2284,11 @@ typedef int vimmenu_T; */ typedef struct { - buf_T *save_buf; /* saved curbuf */ + buf_T *save_curbuf; /* saved curbuf */ #ifdef FEAT_AUTOCMD - buf_T *new_curbuf; /* buffer to be used */ - win_T *save_curwin; /* saved curwin, NULL if it didn't change */ - win_T *new_curwin; /* new curwin if save_curwin != NULL */ - pos_T save_cursor; /* saved cursor pos of save_curwin */ - linenr_T save_topline; /* saved topline of save_curwin */ -# ifdef FEAT_DIFF - int save_topfill; /* saved topfill of save_curwin */ -# endif + win_T *save_curwin; /* saved curwin */ + win_T *new_curwin; /* new curwin */ + buf_T *new_curbuf; /* new curbuf */ #endif } aco_save_T; -- cgit v1.2.1