| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.857 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.857 |
| Problem: Dragging the current tab with the mouse doesn't work properly. |
| Solution: Take the current tabpage index into account. (Hirohito Higashi) |
| Files: src/normal.c |
| |
| |
| |
| |
| |
| *** 2561,2567 **** |
| if (in_tab_line) |
| { |
| c1 = TabPageIdxs[mouse_col]; |
| ! tabpage_move(c1 <= 0 ? 9999 : c1 - 1); |
| } |
| return FALSE; |
| } |
| --- 2561,2568 ---- |
| if (in_tab_line) |
| { |
| c1 = TabPageIdxs[mouse_col]; |
| ! tabpage_move(c1 <= 0 ? 9999 : c1 < tabpage_index(curtab) |
| ! ? c1 - 1 : c1); |
| } |
| return FALSE; |
| } |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 857, |
| /**/ |
| |
| -- |
| BODY: I'm not dead! |
| CART DRIVER: 'Ere. He says he's not dead. |
| LARGE MAN: Yes he is. |
| BODY: I'm not! |
| "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |