To: vim_dev@googlegroups.com Subject: Patch 8.0.1368 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1368 Problem: Cannot drag status line or vertical separator of new terminal window. (UncleBill) Solution: Adjust mouse row and column computation. (Yasuhiro Matsumoto, closes #2410) Files: src/terminal.c *** ../vim-8.0.1367/src/terminal.c 2017-12-01 21:07:16.224989882 +0100 --- src/terminal.c 2017-12-05 13:04:54.847859986 +0100 *************** *** 1308,1319 **** case K_MOUSELEFT: case K_MOUSERIGHT: if (mouse_row < W_WINROW(curwin) ! || mouse_row > (W_WINROW(curwin) + curwin->w_height) || mouse_col < curwin->w_wincol ! || mouse_col > W_ENDCOL(curwin) || dragging_outside) { ! /* click or scroll outside the current window */ if (typed) { stuffcharReadbuff(c); --- 1308,1320 ---- case K_MOUSELEFT: case K_MOUSERIGHT: if (mouse_row < W_WINROW(curwin) ! || mouse_row >= (W_WINROW(curwin) + curwin->w_height) || mouse_col < curwin->w_wincol ! || mouse_col >= W_ENDCOL(curwin) || dragging_outside) { ! /* click or scroll outside the current window or on status line ! * or vertical separator */ if (typed) { stuffcharReadbuff(c); *** ../vim-8.0.1367/src/version.c 2017-12-05 12:29:57.454648456 +0100 --- src/version.c 2017-12-05 13:03:09.252411542 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1368, /**/ -- hundred-and-one symptoms of being an internet addict: 80. At parties, you introduce your spouse as your "service provider." /// 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 ///