Mercurial > vim
comparison src/window.c @ 870:591fb953a280
updated for version 7.0g05
author | vimboss |
---|---|
date | Sat, 06 May 2006 21:38:18 +0000 |
parents | 99305c4c42d4 |
children | b2dcb8457067 |
comparison
equal
deleted
inserted
replaced
869:31bff9be0a77 | 870:591fb953a280 |
---|---|
3423 enter_tabpage(tp, old_curbuf) | 3423 enter_tabpage(tp, old_curbuf) |
3424 tabpage_T *tp; | 3424 tabpage_T *tp; |
3425 buf_T *old_curbuf; | 3425 buf_T *old_curbuf; |
3426 { | 3426 { |
3427 int old_off = tp->tp_firstwin->w_winrow; | 3427 int old_off = tp->tp_firstwin->w_winrow; |
3428 win_T *next_prevwin = tp->tp_prevwin; | |
3428 | 3429 |
3429 curtab = tp; | 3430 curtab = tp; |
3430 firstwin = tp->tp_firstwin; | 3431 firstwin = tp->tp_firstwin; |
3431 lastwin = tp->tp_lastwin; | 3432 lastwin = tp->tp_lastwin; |
3432 topframe = tp->tp_topframe; | 3433 topframe = tp->tp_topframe; |
3434 | |
3435 /* We would like doing the TabEnter event first, but we don't have a | |
3436 * valid current window yet, which may break some commands. | |
3437 * This triggers autocommands, thus may make "tp" invalid. */ | |
3438 win_enter_ext(tp->tp_curwin, FALSE, TRUE); | |
3439 prevwin = next_prevwin; | |
3440 | |
3433 #ifdef FEAT_AUTOCMD | 3441 #ifdef FEAT_AUTOCMD |
3434 apply_autocmds(EVENT_TABENTER, NULL, NULL, FALSE, curbuf); | 3442 apply_autocmds(EVENT_TABENTER, NULL, NULL, FALSE, curbuf); |
3435 #endif | 3443 |
3436 | |
3437 win_enter_ext(tp->tp_curwin, FALSE, TRUE); | |
3438 prevwin = tp->tp_prevwin; | |
3439 | |
3440 #ifdef FEAT_AUTOCMD | |
3441 if (old_curbuf != curbuf) | 3444 if (old_curbuf != curbuf) |
3442 apply_autocmds(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf); | 3445 apply_autocmds(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf); |
3443 #endif | 3446 #endif |
3444 | 3447 |
3445 last_status(FALSE); /* status line may appear or disappear */ | 3448 last_status(FALSE); /* status line may appear or disappear */ |