Mercurial > vim
comparison src/term.c @ 685:d7e33248b9c8 v7.0206
updated for version 7.0206
author | vimboss |
---|---|
date | Fri, 24 Feb 2006 23:53:04 +0000 |
parents | a39b8af64334 |
children | bcd2edc4539e |
comparison
equal
deleted
inserted
replaced
684:a8caf7dd853d | 685:d7e33248b9c8 |
---|---|
4764 * | 4764 * |
4765 * A menu event is encoded as K_SPECIAL, KS_MENU, KE_FILLER followed by | 4765 * A menu event is encoded as K_SPECIAL, KS_MENU, KE_FILLER followed by |
4766 * four bytes which are to be taken as a pointer to the vimmenu_T | 4766 * four bytes which are to be taken as a pointer to the vimmenu_T |
4767 * structure. | 4767 * structure. |
4768 * | 4768 * |
4769 * A tab line event is encodded as K_SPECIAL KS_TABLINE nr, where "nr" | |
4770 * is one byte with the tab index. | |
4771 * | |
4769 * A scrollbar event is K_SPECIAL, KS_VER_SCROLLBAR, KE_FILLER followed | 4772 * A scrollbar event is K_SPECIAL, KS_VER_SCROLLBAR, KE_FILLER followed |
4770 * by one byte representing the scrollbar number, and then four bytes | 4773 * by one byte representing the scrollbar number, and then four bytes |
4771 * representing a long_u which is the new value of the scrollbar. | 4774 * representing a long_u which is the new value of the scrollbar. |
4772 * | 4775 * |
4773 * A horizontal scrollbar event is K_SPECIAL, KS_HOR_SCROLLBAR, | 4776 * A horizontal scrollbar event is K_SPECIAL, KS_HOR_SCROLLBAR, |
4781 | 4784 |
4782 num_bytes = get_long_from_buf(tp + slen, &val); | 4785 num_bytes = get_long_from_buf(tp + slen, &val); |
4783 if (num_bytes == -1) | 4786 if (num_bytes == -1) |
4784 return -1; | 4787 return -1; |
4785 current_menu = (vimmenu_T *)val; | 4788 current_menu = (vimmenu_T *)val; |
4789 slen += num_bytes; | |
4790 } | |
4791 # endif | |
4792 # ifdef FEAT_GUI_TABLINE | |
4793 else if (key_name[0] == (int)KS_TABLINE) | |
4794 { | |
4795 num_bytes = get_bytes_from_buf(tp + slen, bytes, 1); | |
4796 if (num_bytes == -1) | |
4797 return -1; | |
4798 current_tab = (int)bytes[0]; | |
4786 slen += num_bytes; | 4799 slen += num_bytes; |
4787 } | 4800 } |
4788 # endif | 4801 # endif |
4789 # ifndef USE_ON_FLY_SCROLL | 4802 # ifndef USE_ON_FLY_SCROLL |
4790 else if (key_name[0] == (int)KS_VER_SCROLLBAR) | 4803 else if (key_name[0] == (int)KS_VER_SCROLLBAR) |