Mirror of the Vim source from https://github.com/vim/vim
リビジョン | 8a22a90c964a168cf3d93f5ff8d5c531a4327ea6 (tree) |
---|---|
日時 | 2008-01-15 04:12:28 |
作者 | vimboss |
コミッター | vimboss |
updated for version 7.1-229
@@ -8618,6 +8618,14 @@ | ||
8618 | 8618 | if (vim_strchr(p_cpo, CPO_BACKSPACE) != NULL && dollar_vcol == 0) |
8619 | 8619 | dollar_vcol = curwin->w_virtcol; |
8620 | 8620 | |
8621 | +#ifdef FEAT_FOLDING | |
8622 | + /* When deleting a char the cursor line must never be in a closed fold. | |
8623 | + * E.g., when 'foldmethod' is indent and deleting the first non-white | |
8624 | + * char before a Tab. */ | |
8625 | + if (did_backspace) | |
8626 | + foldOpenCursor(); | |
8627 | +#endif | |
8628 | + | |
8621 | 8629 | return did_backspace; |
8622 | 8630 | } |
8623 | 8631 |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 229, | |
671 | +/**/ | |
670 | 672 | 228, |
671 | 673 | /**/ |
672 | 674 | 227, |