Mercurial > vim
comparison src/gui_w32.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 | e9028055f6d6 |
comparison
equal
deleted
inserted
replaced
12512:018c1e1dc521 | 12513:3ca08bf99396 |
---|---|
6606 p.x += mx; | 6606 p.x += mx; |
6607 p.y += my; | 6607 p.y += my; |
6608 } | 6608 } |
6609 else if (curwin != NULL) | 6609 else if (curwin != NULL) |
6610 { | 6610 { |
6611 p.x += TEXT_X(W_WINCOL(curwin) + curwin->w_wcol + 1); | 6611 p.x += TEXT_X(curwin->w_wincol + curwin->w_wcol + 1); |
6612 p.y += TEXT_Y(W_WINROW(curwin) + curwin->w_wrow + 1); | 6612 p.y += TEXT_Y(W_WINROW(curwin) + curwin->w_wrow + 1); |
6613 } | 6613 } |
6614 msg_scroll = FALSE; | 6614 msg_scroll = FALSE; |
6615 gui_mch_show_popupmenu_at(menu, (int)p.x, (int)p.y); | 6615 gui_mch_show_popupmenu_at(menu, (int)p.x, (int)p.y); |
6616 } | 6616 } |