fold.h
Go to the documentation of this file.
1 #ifndef NVIM_FOLD_H
2 #define NVIM_FOLD_H
3 
4 #include <stdio.h>
5 
6 #include "nvim/buffer_defs.h"
7 #include "nvim/garray.h"
8 #include "nvim/pos.h"
9 #include "nvim/types.h"
10 
11 /*
12  * Info used to pass info about a fold from the fold-detection code to the
13  * code that displays the foldcolumn.
14  */
15 typedef struct foldinfo {
16  linenr_T fi_lnum; // line number where fold starts
17  int fi_level; /* level of the fold; when this is zero the
18  other fields are invalid */
19  int fi_low_level; /* lowest fold level that starts in the same
20  line */
21  long fi_lines;
22 } foldinfo_T;
23 
24 #define FOLDINFO_INIT { 0, 0, 0, 0 }
25 
26 
27 #ifdef INCLUDE_GENERATED_DECLARATIONS
28 # include "fold.h.generated.h"
29 #endif
30 #endif // NVIM_FOLD_H
types.h
foldinfo::fi_low_level
int fi_low_level
Definition: fold.h:19
foldinfo::fi_lnum
linenr_T fi_lnum
Definition: fold.h:16
foldinfo::fi_level
int fi_level
Definition: fold.h:17
foldinfo::fi_lines
long fi_lines
Definition: fold.h:21
foldinfo
Definition: fold.h:15
garray.h
buffer_defs.h
foldinfo_T
struct foldinfo foldinfo_T
linenr_T
long linenr_T
Definition: pos.h:7
pos.h