comparison src/fold.c @ 6755:b85fcd9b858d v7.4.700

patch 7.4.700 Problem: Fold can't be opened after ":move". (Ein Brown) Solution: Delete the folding information and update it afterwards. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 15 Apr 2015 12:43:50 +0200
parents c1aa837853ea
children 286fd54c7ae3
comparison
equal deleted inserted replaced
6754:a0651f2537f5 6755:b85fcd9b858d
845 linenr_T bot; 845 linenr_T bot;
846 { 846 {
847 fold_T *fp; 847 fold_T *fp;
848 848
849 /* Mark all folds from top to bot as maybe-small. */ 849 /* Mark all folds from top to bot as maybe-small. */
850 (void)foldFind(&curwin->w_folds, top, &fp); 850 (void)foldFind(&wp->w_folds, top, &fp);
851 while (fp < (fold_T *)curwin->w_folds.ga_data + curwin->w_folds.ga_len 851 while (fp < (fold_T *)wp->w_folds.ga_data + wp->w_folds.ga_len
852 && fp->fd_top < bot) 852 && fp->fd_top < bot)
853 { 853 {
854 fp->fd_small = MAYBE; 854 fp->fd_small = MAYBE;
855 ++fp; 855 ++fp;
856 } 856 }