summaryrefslogtreecommitdiffstats
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-25 22:13:59 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-25 22:13:59 +0000
commit551dbcc9b604c2992f908fb475e797fcc116315b (patch)
treed48db26e4f3470df23fdd8e8593bcf067fab4142 /src/gui_w48.c
parentf9393ef5efde2f425fbd9e19363186f8c9103376 (diff)
updated for version 7.0f01v7.0f01
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 2e43557f24..44d03d067a 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -1122,12 +1122,12 @@ gui_mch_set_text_area_pos(int x, int y, int w, int h)
int top = 0;
RECT rect;
-#ifdef FEAT_TOOLBAR
+# ifdef FEAT_TOOLBAR
if (vim_strchr(p_go, GO_TOOLBAR) != NULL)
top = TOOLBAR_BUTTON_HEIGHT + TOOLBAR_BORDER_HEIGHT;
-#endif
+# endif
GetClientRect(s_hwnd, &rect);
- MoveWindow(s_tabhwnd, 0, top, rect.right, TABLINE_HEIGHT, TRUE);
+ MoveWindow(s_tabhwnd, 0, top, rect.right, gui.tabline_height, TRUE);
}
#endif
@@ -2379,8 +2379,8 @@ gui_mch_set_curtab(nr)
if (s_tabhwnd == NULL)
return;
- if (TabCtrl_GetCurSel(s_tabhwnd) != nr)
- TabCtrl_SetCurSel(s_tabhwnd, nr);
+ if (TabCtrl_GetCurSel(s_tabhwnd) != nr -1)
+ TabCtrl_SetCurSel(s_tabhwnd, nr -1);
}
#endif