summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-22 14:35:51 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-22 14:35:51 +0200
commit53f8174eaeb93b381cf74c58863f8fe82748a22a (patch)
tree8f60614e9840f38bd2a05a48809bb7b29adc26b1 /src/netbeans.c
parent76301956f0c079d893cfd927b11456328bed4f9b (diff)
downloadvim-git-53f8174eaeb93b381cf74c58863f8fe82748a22a.tar.gz
patch 8.0.1135: W_WINCOL() is always the samev8.0.1135
Problem: W_WINCOL() is always the same. Solution: Expand the macro.
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index 3685e151a..1a86727b7 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -2872,7 +2872,7 @@ netbeans_button_release(int button)
if (bufno >= 0 && curwin != NULL && curwin->w_buffer == curbuf)
{
- int col = mouse_col - W_WINCOL(curwin)
+ int col = mouse_col - curwin->w_wincol
- ((curwin->w_p_nu || curwin->w_p_rnu) ? 9 : 1);
long off = pos2off(curbuf, &curwin->w_cursor);