summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-16 15:46:46 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-16 15:46:46 +0200
commit64486671c3fcc75698c57732c50865ad0573b3fe (patch)
tree2e638c57e838549b6c314984b2405c25b2e4c175 /src/netbeans.c
parent13c4c5da673c488d2d340c72f401f0631b9f669d (diff)
downloadvim-git-64486671c3fcc75698c57732c50865ad0573b3fe.tar.gz
Add 'relativenumber' patch from Markus Heidelberg.
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index 94c1aaadf..93a9aea75 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -3143,7 +3143,8 @@ netbeans_button_release(int button)
if (bufno >= 0 && curwin != NULL && curwin->w_buffer == curbuf)
{
- int col = mouse_col - W_WINCOL(curwin) - (curwin->w_p_nu ? 9 : 1);
+ int col = mouse_col - W_WINCOL(curwin)
+ - ((curwin->w_p_nu || curwin->w_p_rnu) ? 9 : 1);
long off = pos2off(curbuf, &curwin->w_cursor);
/* sync the cursor position */