comparison src/netbeans.c @ 12513:3ca08bf99396 v8.0.1135

patch 8.0.1135: W_WINCOL() is always the same commit https://github.com/vim/vim/commit/53f8174eaeb93b381cf74c58863f8fe82748a22a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 22 14:35:51 2017 +0200 patch 8.0.1135: W_WINCOL() is always the same Problem: W_WINCOL() is always the same. Solution: Expand the macro.
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Sep 2017 14:45:06 +0200
parents 68d7bc045dbe
children 1a450ce6980c
comparison
equal deleted inserted replaced
12512:018c1e1dc521 12513:3ca08bf99396
2870 2870
2871 bufno = nb_getbufno(curbuf); 2871 bufno = nb_getbufno(curbuf);
2872 2872
2873 if (bufno >= 0 && curwin != NULL && curwin->w_buffer == curbuf) 2873 if (bufno >= 0 && curwin != NULL && curwin->w_buffer == curbuf)
2874 { 2874 {
2875 int col = mouse_col - W_WINCOL(curwin) 2875 int col = mouse_col - curwin->w_wincol
2876 - ((curwin->w_p_nu || curwin->w_p_rnu) ? 9 : 1); 2876 - ((curwin->w_p_nu || curwin->w_p_rnu) ? 9 : 1);
2877 long off = pos2off(curbuf, &curwin->w_cursor); 2877 long off = pos2off(curbuf, &curwin->w_cursor);
2878 2878
2879 /* sync the cursor position */ 2879 /* sync the cursor position */
2880 sprintf(buf, "%d:newDotAndMark=%d %ld %ld\n", bufno, r_cmdno, off, off); 2880 sprintf(buf, "%d:newDotAndMark=%d %ld %ld\n", bufno, r_cmdno, off, off);