Mercurial > vim
comparison src/window.c @ 1070:32c1b275ba64 v7.0.196
updated for version 7.0-196
author | vimboss |
---|---|
date | Mon, 19 Feb 2007 23:14:18 +0000 |
parents | 932fe018ad16 |
children | 9a3b65713280 |
comparison
equal
deleted
inserted
replaced
1069:f628d19361d9 | 1070:32c1b275ba64 |
---|---|
1539 { | 1539 { |
1540 height = win1->w_prev->w_status_height; | 1540 height = win1->w_prev->w_status_height; |
1541 win1->w_prev->w_status_height = win1->w_status_height; | 1541 win1->w_prev->w_status_height = win1->w_status_height; |
1542 win1->w_status_height = height; | 1542 win1->w_status_height = height; |
1543 #ifdef FEAT_VERTSPLIT | 1543 #ifdef FEAT_VERTSPLIT |
1544 win1->w_prev->w_vsep_width = 0; | 1544 if (win1->w_prev->w_vsep_width == 1) |
1545 win1->w_vsep_width = 1; | 1545 { |
1546 /* Remove the vertical separator from the last-but-one window, | |
1547 * add it to the last window. Adjust the frame widths. */ | |
1548 win1->w_prev->w_vsep_width = 0; | |
1549 win1->w_prev->w_frame->fr_width -= 1; | |
1550 win1->w_vsep_width = 1; | |
1551 win1->w_frame->fr_width += 1; | |
1552 } | |
1546 #endif | 1553 #endif |
1547 } | 1554 } |
1548 else if (win2 == lastwin) | 1555 else if (win2 == lastwin) |
1549 { | 1556 { |
1550 height = win1->w_status_height; | 1557 height = win1->w_status_height; |
1551 win1->w_status_height = win2->w_status_height; | 1558 win1->w_status_height = win2->w_status_height; |
1552 win2->w_status_height = height; | 1559 win2->w_status_height = height; |
1553 #ifdef FEAT_VERTSPLIT | 1560 #ifdef FEAT_VERTSPLIT |
1554 win2->w_vsep_width = 1; | 1561 if (win1->w_vsep_width == 1) |
1555 win1->w_vsep_width = 0; | 1562 { |
1563 /* Remove the vertical separator from win1, add it to the last | |
1564 * window, win2. Adjust the frame widths. */ | |
1565 win2->w_vsep_width = 1; | |
1566 win2->w_frame->fr_width += 1; | |
1567 win1->w_vsep_width = 0; | |
1568 win1->w_frame->fr_width -= 1; | |
1569 } | |
1556 #endif | 1570 #endif |
1557 } | 1571 } |
1558 win_remove(win1, NULL); | 1572 win_remove(win1, NULL); |
1559 frame_remove(win1->w_frame); | 1573 frame_remove(win1->w_frame); |
1560 win_append(win2, win1); | 1574 win_append(win2, win1); |