diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-06-16 14:01:43 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-06-16 14:01:43 +0000 |
commit | 746ebd3b6a2ad53dc0caf0872e7895d0cab966e1 (patch) | |
tree | 7eb48e9b5ebdd7e17e79db2418bca9ddde158b0e /src/structs.h | |
parent | 8b38e2416c1c56e38fa85ad048a4e1a3df851a43 (diff) | |
download | vim-git-746ebd3b6a2ad53dc0caf0872e7895d0cab966e1.tar.gz |
updated for version 7.2-203v7.2.203
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 23 |
1 files changed, 13 insertions, 10 deletions
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; |