diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-01 17:52:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-01 17:52:32 +0200 |
commit | db022f3ffb57c5ff4b97b4e93a994d11e4c10466 (patch) | |
tree | ff0dacb002fe1224be8ebd9f6ac8f88e786cc73f /src/proto | |
parent | a112f2d0035b0800b4a70dbb6f0e5f85e8ec84e5 (diff) | |
download | vim-git-db022f3ffb57c5ff4b97b4e93a994d11e4c10466.tar.gz |
patch 8.1.1960: fold code is spread outv8.1.1960
Problem: Fold code is spread out.
Solution: Move fold functions to fold.c.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/fold.pro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/proto/fold.pro b/src/proto/fold.pro index d8e349420..93d1dc5cb 100644 --- a/src/proto/fold.pro +++ b/src/proto/fold.pro @@ -3,7 +3,6 @@ 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); int hasFoldingWin(win_T *win, linenr_T lnum, linenr_T *firstp, linenr_T *lastp, int cache, foldinfo_T *infop); -int foldLevel(linenr_T lnum); int lineFolded(win_T *win, linenr_T lnum); long foldedCount(win_T *win, linenr_T lnum, foldinfo_T *infop); int foldmethodIsManual(win_T *wp); @@ -36,7 +35,11 @@ void deleteFoldRecurse(garray_T *gap); void foldMarkAdjust(win_T *wp, linenr_T line1, linenr_T line2, long amount, long amount_after); int getDeepestNesting(void); char_u *get_foldtext(win_T *wp, linenr_T lnum, linenr_T lnume, foldinfo_T *foldinfo, char_u *buf); -void foldtext_cleanup(char_u *str); void foldMoveRange(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest); int put_folds(FILE *fd, win_T *wp); +void f_foldclosed(typval_T *argvars, typval_T *rettv); +void f_foldclosedend(typval_T *argvars, typval_T *rettv); +void f_foldlevel(typval_T *argvars, typval_T *rettv); +void f_foldtext(typval_T *argvars, typval_T *rettv); +void f_foldtextresult(typval_T *argvars, typval_T *rettv); /* vim: set ft=c : */ |