diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-25 21:52:33 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-25 21:52:33 +0000 |
commit | 5c8837f9d7785c65c40f1485a779cc886750a5e9 (patch) | |
tree | 4f5ecb382974d741127e70d01975ee9046a5a90c /src/term.c | |
parent | c542aef58df8ea69708d29d6fcbfa44f5eb3481d (diff) | |
download | vim-5c8837f9d7785c65c40f1485a779cc886750a5e9.zip |
updated for version 7.0207
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 596de514a..69b0c6cb7 100644 --- a/src/term.c +++ b/src/term.c @@ -4792,12 +4792,23 @@ check_termcode(max_offset, buf, buflen) # ifdef FEAT_GUI_TABLINE else if (key_name[0] == (int)KS_TABLINE) { + /* Selecting tabline tab or using its menu. */ num_bytes = get_bytes_from_buf(tp + slen, bytes, 1); if (num_bytes == -1) return -1; current_tab = (int)bytes[0]; slen += num_bytes; } + else if (key_name[0] == (int)KS_TABMENU) + { + /* Selecting tabline tab or using its menu. */ + num_bytes = get_bytes_from_buf(tp + slen, bytes, 2); + if (num_bytes == -1) + return -1; + current_tab = (int)bytes[0]; + current_tabmenu = (int)bytes[1]; + slen += num_bytes; + } # endif # ifndef USE_ON_FLY_SCROLL else if (key_name[0] == (int)KS_VER_SCROLLBAR) |