Mercurial > vim
comparison src/window.c @ 8651:8a106a24d128 v7.4.1615
commit https://github.com/vim/vim/commit/829c8e369630a7cbbdac015d8177b7fde25e2f19
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 19 23:07:23 2016 +0100
patch 7.4.1615
Problem: Build fails with tiny features.
Solution: Adjust #ifdefs.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Mar 2016 23:15:04 +0100 |
parents | 24b43dd167eb |
children | 75446578a52f |
comparison
equal
deleted
inserted
replaced
8650:4feaa149926c | 8651:8a106a24d128 |
---|---|
3444 | 3444 |
3445 new_frame(curwin); | 3445 new_frame(curwin); |
3446 if (curwin->w_frame == NULL) | 3446 if (curwin->w_frame == NULL) |
3447 return FAIL; | 3447 return FAIL; |
3448 topframe = curwin->w_frame; | 3448 topframe = curwin->w_frame; |
3449 #ifdef FEAT_WINDOWS | |
3449 topframe->fr_width = Columns; | 3450 topframe->fr_width = Columns; |
3451 #endif | |
3450 topframe->fr_height = Rows - p_ch; | 3452 topframe->fr_height = Rows - p_ch; |
3451 topframe->fr_win = curwin; | 3453 topframe->fr_win = curwin; |
3452 | 3454 |
3453 return OK; | 3455 return OK; |
3454 } | 3456 } |
3475 void | 3477 void |
3476 win_init_size(void) | 3478 win_init_size(void) |
3477 { | 3479 { |
3478 firstwin->w_height = ROWS_AVAIL; | 3480 firstwin->w_height = ROWS_AVAIL; |
3479 topframe->fr_height = ROWS_AVAIL; | 3481 topframe->fr_height = ROWS_AVAIL; |
3482 #ifdef FEAT_WINDOWS | |
3480 firstwin->w_width = Columns; | 3483 firstwin->w_width = Columns; |
3481 topframe->fr_width = Columns; | 3484 topframe->fr_width = Columns; |
3485 #endif | |
3482 } | 3486 } |
3483 | 3487 |
3484 #if defined(FEAT_WINDOWS) || defined(PROTO) | 3488 #if defined(FEAT_WINDOWS) || defined(PROTO) |
3485 | 3489 |
3486 /* | 3490 /* |
4466 * link the window in the window list | 4470 * link the window in the window list |
4467 */ | 4471 */ |
4468 #ifdef FEAT_WINDOWS | 4472 #ifdef FEAT_WINDOWS |
4469 if (!hidden) | 4473 if (!hidden) |
4470 win_append(after, new_wp); | 4474 win_append(after, new_wp); |
4471 #endif | |
4472 new_wp->w_wincol = 0; | 4475 new_wp->w_wincol = 0; |
4473 new_wp->w_width = Columns; | 4476 new_wp->w_width = Columns; |
4477 #endif | |
4474 | 4478 |
4475 /* position the display and the cursor at the top of the file. */ | 4479 /* position the display and the cursor at the top of the file. */ |
4476 new_wp->w_topline = 1; | 4480 new_wp->w_topline = 1; |
4477 #ifdef FEAT_DIFF | 4481 #ifdef FEAT_DIFF |
4478 new_wp->w_topfill = 0; | 4482 new_wp->w_topfill = 0; |