summaryrefslogtreecommitdiff
path: root/src/mouse.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-02 20:04:22 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-02 20:04:22 +0100
commitdbfa795d8b66c99ee758b132d6043871b9061563 (patch)
treefea9c89a4b0fd254da72c2dd9a245ae914c2a2de /src/mouse.c
parent399db046ed7cc64b68ffa68b543c1b1c20baeee3 (diff)
downloadvim-git-dbfa795d8b66c99ee758b132d6043871b9061563.tar.gz
patch 8.2.1942: insufficient test coverage for the Netbeans interfacev8.2.1942
Problem: Insufficient test coverage for the Netbeans interface. Solution: Add more tests. Fix an uncovered bug. (Yegappan Lakshmanan, closes #7240)
Diffstat (limited to 'src/mouse.c')
-rw-r--r--src/mouse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index 7b1bedc7e..10b991b98 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -2929,10 +2929,12 @@ mouse_comp_pos(
// skip line number and fold column in front of the line
col -= win_col_off(win);
- if (col < 0)
+ if (col <= 0)
{
#ifdef FEAT_NETBEANS_INTG
- netbeans_gutter_click(lnum);
+ // if mouse is clicked on the gutter, then inform the netbeans server
+ if (*colp < win_col_off(win))
+ netbeans_gutter_click(lnum);
#endif
col = 0;
}