# HG changeset patch # User vimboss # Date 1106172508 0 # Node ID 45fd0ec37cf352abb31f52f018d3b152098c7d9d # Parent d4ea645c77489da3d5f0f0f48a14bb63793e1505 updated for version 7.0042 diff --git a/src/netbeans.c b/src/netbeans.c --- a/src/netbeans.c +++ b/src/netbeans.c @@ -2896,7 +2896,7 @@ netbeans_button_release(int button) if (bufno >= 0 && curwin != NULL && curwin->w_buffer == curbuf) { - int col = mouse_col - curwin->w_wincol - (curwin->w_p_nu ? 9 : 1); + int col = mouse_col - W_WINCOL(curwin) - (curwin->w_p_nu ? 9 : 1); long off = pos2off(curbuf, &curwin->w_cursor); /* sync the cursor position */