0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1942: insufficient test coverage for the Netbeans interface

Problem:    Insufficient test coverage for the Netbeans interface.
Solution:   Add more tests. Fix an uncovered bug. (Yegappan Lakshmanan,
            closes #7240)
This commit is contained in:
Bram Moolenaar
2020-11-02 20:04:22 +01:00
parent 399db046ed
commit dbfa795d8b
6 changed files with 199 additions and 18 deletions

View File

@@ -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;
}