diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-06 16:11:38 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-07 08:02:38 -0300 |
commit | a86da86d9822e16ffe0e9da7fe21864cd869ddf8 (patch) | |
tree | 5d744ba3716192dbd672e78acdb448f8ee333a45 /src/fold.h | |
parent | 3005681a02ca0478231329b5deae83a308687b21 (diff) | |
download | rneovim-a86da86d9822e16ffe0e9da7fe21864cd869ddf8.tar.gz rneovim-a86da86d9822e16ffe0e9da7fe21864cd869ddf8.tar.bz2 rneovim-a86da86d9822e16ffe0e9da7fe21864cd869ddf8.zip |
Move some types and consts from structs.h to other headers
- `foldinfo_T` to `fold.h`
- `context_sha256_T` to `sha256.h`
- `tagname_T` to `tag.h`
- `pumitem_T` to `popupmnu.h`
- `prt_*_T` to hardcopy.h`
- `CPT_*` consts to `edit.h`
- `vimmenu_T`, `MNU_HIDDEN_CHAR`, and `MENU_*` constants to `menu.h`
Diffstat (limited to 'src/fold.h')
-rw-r--r-- | src/fold.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/fold.h b/src/fold.h index 70416ed8aa..baa781645a 100644 --- a/src/fold.h +++ b/src/fold.h @@ -1,6 +1,18 @@ #ifndef NEOVIM_FOLD_H #define NEOVIM_FOLD_H -/* fold.c */ + +/* + * Info used to pass info about a fold from the fold-detection code to the + * code that displays the foldcolumn. + */ +typedef struct foldinfo { + int fi_level; /* level of the fold; when this is zero the + other fields are invalid */ + int fi_lnum; /* line number where fold starts */ + int fi_low_level; /* lowest fold level that starts in the same + line */ +} foldinfo_T; + void copyFoldingState(win_T *wp_from, win_T *wp_to); int hasAnyFolding(win_T *win); int hasFolding(linenr_T lnum, linenr_T *firstp, linenr_T *lastp); |