diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-23 21:26:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-23 21:26:58 +0000 |
commit | 80a94a582cd2d5307d1e65ec06fe0fb05f60d7c9 (patch) | |
tree | aff2c0d22bf46c67d702d07b7ce0d160c09d7e23 /src/normal.c | |
parent | d1f56e68f1315687ff5b913e2577f11b0b620573 (diff) | |
download | vim-80a94a582cd2d5307d1e65ec06fe0fb05f60d7c9.zip |
updated for version 7.0205
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/normal.c b/src/normal.c index 07857f5ba..4f4ffa954 100644 --- a/src/normal.c +++ b/src/normal.c @@ -2437,13 +2437,23 @@ do_mouse(oap, c, dir, count, fixindent) c1 = TabPageIdxs[mouse_col]; if (c1 >= 0) { - /* Go to specified tab page, or next one if not clicking on a - * label. */ - goto_tabpage(c1); - - /* It's like clicking on the status line of a window. */ - if (curwin != old_curwin) + if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK) + { + /* double click opens new page */ end_visual_mode(); + tabpage_new(); + tabpage_move(c1 == 0 ? 9999 : c1 - 1); + } + else + { + /* Go to specified tab page, or next one if not clicking + * on a label. */ + goto_tabpage(c1); + + /* It's like clicking on the status line of a window. */ + if (curwin != old_curwin) + end_visual_mode(); + } } else if (c1 < 0) { @@ -7895,6 +7905,9 @@ nv_g_cmd(cap) case 't': goto_tabpage((int)cap->count0); break; + case 'T': + goto_tabpage(-(int)cap->count1); + break; #endif default: |