From 53f8174eaeb93b381cf74c58863f8fe82748a22a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 22 Sep 2017 14:35:51 +0200 Subject: patch 8.0.1135: W_WINCOL() is always the same Problem: W_WINCOL() is always the same. Solution: Expand the macro. --- src/gui_gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui_gtk.c') diff --git a/src/gui_gtk.c b/src/gui_gtk.c index af8fcae11b..b321da0d58 100644 --- a/src/gui_gtk.c +++ b/src/gui_gtk.c @@ -1954,7 +1954,7 @@ popup_menu_position_func(GtkMenu *menu UNUSED, # endif { /* Find the cursor position in the current window */ - *x += FILL_X(W_WINCOL(curwin) + curwin->w_wcol + 1) + 1; + *x += FILL_X(curwin->w_wincol + curwin->w_wcol + 1) + 1; *y += FILL_Y(W_WINROW(curwin) + curwin->w_wrow + 1) + 1; } } -- cgit v1.2.3