diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-14 21:53:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-14 21:53:58 +0100 |
commit | 88d298aed8682eac872ebfe40df3112a6acd83e8 (patch) | |
tree | 26123c3b8e8a4bdfae26c82d2eae76ad0bf16f33 /src/proto | |
parent | 84be8b66604ef28c0e249284da3c6f0cab1c25ae (diff) |
patch 8.0.0457: using :move messes up manual foldsv8.0.0457
Problem: Using :move messes up manual folds.
Solution: Split adjusting marks and folds. Add foldMoveRange(). (neovim
patch #6221)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/fold.pro | 1 | ||||
-rw-r--r-- | src/proto/mark.pro | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/fold.pro b/src/proto/fold.pro index dce1803810..cda536b27e 100644 --- a/src/proto/fold.pro +++ b/src/proto/fold.pro @@ -31,6 +31,7 @@ void foldInitWin(win_T *new_win); int find_wl_entry(win_T *win, linenr_T lnum); void foldAdjustVisual(void); void foldAdjustCursor(void); +void foldMoveRange(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest); void cloneFoldGrowArray(garray_T *from, garray_T *to); void deleteFoldRecurse(garray_T *gap); void foldMarkAdjust(win_T *wp, linenr_T line1, linenr_T line2, long amount, long amount_after); diff --git a/src/proto/mark.pro b/src/proto/mark.pro index 90be1a566e..ff1f441e81 100644 --- a/src/proto/mark.pro +++ b/src/proto/mark.pro @@ -19,6 +19,7 @@ void ex_jumps(exarg_T *eap); void ex_clearjumps(exarg_T *eap); void ex_changes(exarg_T *eap); void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); +void mark_adjust_nofold(linenr_T line1, linenr_T line2, long amount, long amount_after); void mark_col_adjust(linenr_T lnum, colnr_T mincol, long lnum_amount, long col_amount); void copy_jumplist(win_T *from, win_T *to); void free_jumplist(win_T *wp); |