FOR_ALL_TABS helper

This commit is contained in:
Wayne Rowcliffe
2014-08-22 22:40:49 -05:00
parent a4b9e0df67
commit b4ec6c1a4b
7 changed files with 58 additions and 51 deletions

View File

@@ -548,6 +548,9 @@ EXTERN tabpage_T *first_tabpage;
EXTERN tabpage_T *curtab;
EXTERN int redraw_tabline INIT(= FALSE); /* need to redraw tabline */
// Iterates over all tabs in the tab list
# define FOR_ALL_TABS(tp) for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next)
/*
* All buffers are linked in a list. 'firstbuf' points to the first entry,
* 'lastbuf' to the last entry and 'curbuf' to the currently active buffer.