aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index f8927acb8b..56882bc17d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1,4 +1,4 @@
-/* vi:set ts=8 sts=4 sw=4:
+/* vi:set ts=2 sts=2 sw=2:
*
* VIM - Vi IMproved by Bram Moolenaar
*
@@ -3866,12 +3866,12 @@ void win_size_save(garray_T *gap)
win_T *wp;
ga_init(gap, (int)sizeof(int), 1);
- if (ga_grow(gap, win_count() * 2) == OK)
- for (wp = firstwin; wp != NULL; wp = wp->w_next) {
- ((int *)gap->ga_data)[gap->ga_len++] =
- wp->w_width + wp->w_vsep_width;
- ((int *)gap->ga_data)[gap->ga_len++] = wp->w_height;
- }
+ ga_grow(gap, win_count() * 2);
+ for (wp = firstwin; wp != NULL; wp = wp->w_next) {
+ ((int *)gap->ga_data)[gap->ga_len++] =
+ wp->w_width + wp->w_vsep_width;
+ ((int *)gap->ga_data)[gap->ga_len++] = wp->w_height;
+ }
}
/*