comparison src/gui.c @ 838:8e5830943bff v7.0e04

updated for version 7.0e04
author vimboss
date Thu, 20 Apr 2006 22:17:20 +0000
parents 8bebcabccc2c
children 1f3b1021f002
comparison
equal deleted inserted replaced
837:6bb1fa855dc9 838:8e5830943bff
3489 } 3489 }
3490 3490
3491 /* 3491 /*
3492 * Send the event for clicking to select tab page "nr". 3492 * Send the event for clicking to select tab page "nr".
3493 * Returns TRUE if it was done, FALSE when skipped because we are already at 3493 * Returns TRUE if it was done, FALSE when skipped because we are already at
3494 * that tab page. 3494 * that tab page or the cmdline window is open.
3495 */ 3495 */
3496 int 3496 int
3497 send_tabline_event(nr) 3497 send_tabline_event(nr)
3498 int nr; 3498 int nr;
3499 { 3499 {
3500 char_u string[3]; 3500 char_u string[3];
3501 3501
3502 if (nr == tabpage_index(curtab)) 3502 if (nr == tabpage_index(curtab))
3503 return FALSE; 3503 return FALSE;
3504 # ifdef FEAT_CMDWIN
3505 if (cmdwin_type != 0)
3506 {
3507 /* Set it back to the current tab page. */
3508 gui_mch_set_curtab(tabpage_index(curtab));
3509 return FALSE;
3510 }
3511 # endif
3504 string[0] = CSI; 3512 string[0] = CSI;
3505 string[1] = KS_TABLINE; 3513 string[1] = KS_TABLINE;
3506 string[2] = KE_FILLER; 3514 string[2] = KE_FILLER;
3507 add_to_input_buf(string, 3); 3515 add_to_input_buf(string, 3);
3508 string[0] = nr; 3516 string[0] = nr;