To: vim_dev@googlegroups.com Subject: Patch 8.0.1366 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1366 Problem: Balloon shows when cursor is in WinBar. Solution: Don't show the balloon when row is negative. Files: src/beval.c *** ../vim-8.0.1365/src/beval.c 2017-11-19 19:56:21.613895033 +0100 --- src/beval.c 2017-12-03 18:15:26.840585706 +0100 *************** *** 50,56 **** } #endif wp = mouse_find_win(&row, &col); ! if (wp != NULL && row < wp->w_height && col < wp->w_width) { /* Found a window and the cursor is in the text. Now find the line * number. */ --- 50,56 ---- } #endif wp = mouse_find_win(&row, &col); ! if (wp != NULL && row >= 0 && row < wp->w_height && col < wp->w_width) { /* Found a window and the cursor is in the text. Now find the line * number. */ *** ../vim-8.0.1365/src/version.c 2017-12-02 16:38:07.690850293 +0100 --- src/version.c 2017-12-03 18:17:05.876304446 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1366, /**/ -- Proof techniques #2: Proof by Oddity. SAMPLE: To prove that horses have an infinite number of legs. (1) Horses have an even number of legs. (2) They have two legs in back and fore legs in front. (3) This makes a total of six legs, which certainly is an odd number of legs for a horse. (4) But the only number that is both odd and even is infinity. (5) Therefore, horses must have an infinite number of legs. /// 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 ///