Files
neovim/src/nvim/fold.h
zeertzjq a1df7c5771 vim-patch:8.1.0535: increment/decrement might get interrupted by updating folds
Problem:    Increment/decrement might get interrupted by updating folds.
Solution:   Disable fold updating for a moment. (Christian Brabandt,
            closes vim/vim#3599)
6b731886ca
2022-05-22 06:41:31 +08:00

32 lines
839 B
C

#ifndef NVIM_FOLD_H
#define NVIM_FOLD_H
#include <stdio.h>
#include "nvim/buffer_defs.h"
#include "nvim/garray.h"
#include "nvim/pos.h"
#include "nvim/types.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
long fi_lines;
} foldinfo_T;
#define FOLDINFO_INIT { 0, 0, 0, 0 }
EXTERN int disable_fold_update INIT(= 0);
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "fold.h.generated.h"
#endif
#endif // NVIM_FOLD_H