diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 21:52:58 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 21:52:58 +0000 |
commit | 931bffbda3668ddc609fc1da8f9eb576b170aa52 (patch) | |
tree | d8c1843a95da5ea0bb4acc09f7e37843d9995c86 /src/nvim/fold_defs.h | |
parent | 142d9041391780ac15b89886a54015fdc5c73995 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-userreg.tar.gz rneovim-userreg.tar.bz2 rneovim-userreg.zip |
Merge remote-tracking branch 'upstream/master' into userreguserreg
Diffstat (limited to 'src/nvim/fold_defs.h')
-rw-r--r-- | src/nvim/fold_defs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/fold_defs.h b/src/nvim/fold_defs.h new file mode 100644 index 0000000000..68ecd9cc7e --- /dev/null +++ b/src/nvim/fold_defs.h @@ -0,0 +1,15 @@ +#pragma once + +#include "nvim/pos_defs.h" + +/// Info used to pass info about a fold from the fold-detection code to the +/// code that displays the foldcolumn. +typedef struct foldinfo { + linenr_T fi_lnum; ///< line number where fold starts + int fi_level; ///< level of the fold; when this is zero the + ///< other fields are invalid + int fi_low_level; ///< lowest fold level that starts in the same line + linenr_T fi_lines; +} foldinfo_T; + +enum { FOLD_TEXT_LEN = 51, }; ///< buffer size for get_foldtext() |