Mercurial > vim
changeset 691:8106f3da02d0
updated for version 7.0208
author | vimboss |
---|---|
date | Mon, 27 Feb 2006 00:00:52 +0000 |
parents | 0e922220d322 |
children | a28f83d37113 |
files | src/gui.c src/gui.h |
diffstat | 2 files changed, 22 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -3420,6 +3420,28 @@ get_tabline_label(tp) } } +/* + * Send the event for clicking to select tab page "nr". + * Returns TRUE if it was done, FALSE when skipped because we are already at + * that tab page. + */ + int +send_tabline_event(nr) + int nr; +{ + char_u string[3]; + + if (nr == tabpage_index(curtab)) + return FALSE; + string[0] = CSI; + string[1] = KS_TABLINE; + string[2] = KE_FILLER; + add_to_input_buf(string, 3); + string[0] = nr; + add_to_input_buf_csi(string, 1); + return TRUE; +} + #endif /*