Mercurial > vim
comparison src/fold.c @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | e9924d19ee37 |
children | 03831e5ea0de |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
93 static char_u *foldendmarker; | 93 static char_u *foldendmarker; |
94 static int foldendmarkerlen; | 94 static int foldendmarkerlen; |
95 | 95 |
96 /* Exported folding functions. {{{1 */ | 96 /* Exported folding functions. {{{1 */ |
97 /* copyFoldingState() {{{2 */ | 97 /* copyFoldingState() {{{2 */ |
98 #if defined(FEAT_WINDOWS) || defined(PROTO) | 98 |
99 /* | 99 /* |
100 * Copy that folding state from window "wp_from" to window "wp_to". | 100 * Copy that folding state from window "wp_from" to window "wp_to". |
101 */ | 101 */ |
102 void | 102 void |
103 copyFoldingState(win_T *wp_from, win_T *wp_to) | 103 copyFoldingState(win_T *wp_from, win_T *wp_to) |
104 { | 104 { |
105 wp_to->w_fold_manual = wp_from->w_fold_manual; | 105 wp_to->w_fold_manual = wp_from->w_fold_manual; |
106 wp_to->w_foldinvalid = wp_from->w_foldinvalid; | 106 wp_to->w_foldinvalid = wp_from->w_foldinvalid; |
107 cloneFoldGrowArray(&wp_from->w_folds, &wp_to->w_folds); | 107 cloneFoldGrowArray(&wp_from->w_folds, &wp_to->w_folds); |
108 } | 108 } |
109 #endif | |
110 | 109 |
111 /* hasAnyFolding() {{{2 */ | 110 /* hasAnyFolding() {{{2 */ |
112 /* | 111 /* |
113 * Return TRUE if there may be folded lines in the current window. | 112 * Return TRUE if there may be folded lines in the current window. |
114 */ | 113 */ |