summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-02-19 23:14:18 +0000
committerBram Moolenaar <Bram@vim.org>2007-02-19 23:14:18 +0000
commit0396ab01565b39ba8d9cc4989aa04a1e5e5ff31c (patch)
tree9658dd4e193ff29d1947a66145d2e4dd21ab0c19 /src/window.c
parent373154b00c90a7fe81409f471075a62ef3dfbc25 (diff)
downloadvim-git-0396ab01565b39ba8d9cc4989aa04a1e5e5ff31c.tar.gz
updated for version 7.0-196v7.0.196
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index ee9ef9c0c..aa4d26a0b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1541,8 +1541,15 @@ win_move_after(win1, win2)
win1->w_prev->w_status_height = win1->w_status_height;
win1->w_status_height = height;
#ifdef FEAT_VERTSPLIT
- win1->w_prev->w_vsep_width = 0;
- win1->w_vsep_width = 1;
+ if (win1->w_prev->w_vsep_width == 1)
+ {
+ /* Remove the vertical separator from the last-but-one window,
+ * add it to the last window. Adjust the frame widths. */
+ win1->w_prev->w_vsep_width = 0;
+ win1->w_prev->w_frame->fr_width -= 1;
+ win1->w_vsep_width = 1;
+ win1->w_frame->fr_width += 1;
+ }
#endif
}
else if (win2 == lastwin)
@@ -1551,8 +1558,15 @@ win_move_after(win1, win2)
win1->w_status_height = win2->w_status_height;
win2->w_status_height = height;
#ifdef FEAT_VERTSPLIT
- win2->w_vsep_width = 1;
- win1->w_vsep_width = 0;
+ if (win1->w_vsep_width == 1)
+ {
+ /* Remove the vertical separator from win1, add it to the last
+ * window, win2. Adjust the frame widths. */
+ win2->w_vsep_width = 1;
+ win2->w_frame->fr_width += 1;
+ win1->w_vsep_width = 0;
+ win1->w_frame->fr_width -= 1;
+ }
#endif
}
win_remove(win1, NULL);