diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-24 23:53:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-24 23:53:04 +0000 |
commit | 32466aa2e9c45ab355dbaf99a9eedf334bc2e29f (patch) | |
tree | 1644d959a04f9f8c6ea5a8fe3c79f037c6915559 /src/term.c | |
parent | 2a3f7eeebfa05a33cc1d8fbba66a3dff976e8dd7 (diff) | |
download | vim-32466aa2e9c45ab355dbaf99a9eedf334bc2e29f.zip |
updated for version 7.0206
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 621d35ba2..596de514a 100644 --- a/src/term.c +++ b/src/term.c @@ -4766,6 +4766,9 @@ check_termcode(max_offset, buf, buflen) * four bytes which are to be taken as a pointer to the vimmenu_T * structure. * + * A tab line event is encodded as K_SPECIAL KS_TABLINE nr, where "nr" + * is one byte with the tab index. + * * A scrollbar event is K_SPECIAL, KS_VER_SCROLLBAR, KE_FILLER followed * by one byte representing the scrollbar number, and then four bytes * representing a long_u which is the new value of the scrollbar. @@ -4786,6 +4789,16 @@ check_termcode(max_offset, buf, buflen) slen += num_bytes; } # endif +# ifdef FEAT_GUI_TABLINE + else if (key_name[0] == (int)KS_TABLINE) + { + num_bytes = get_bytes_from_buf(tp + slen, bytes, 1); + if (num_bytes == -1) + return -1; + current_tab = (int)bytes[0]; + slen += num_bytes; + } +# endif # ifndef USE_ON_FLY_SCROLL else if (key_name[0] == (int)KS_VER_SCROLLBAR) { |