diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2017-04-11 22:44:48 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-11 22:44:48 +0200 |
commit | 2d72d85b23761383ac7838faed2f7b53bdce8817 (patch) | |
tree | 5c4cfe225180ae19b9e6ce3e12f66b810ca23730 /src/nvim/charset.c | |
parent | 1b94852ccbd07c2475621651bbd02970d30dbc3b (diff) | |
download | rneovim-2d72d85b23761383ac7838faed2f7b53bdce8817.tar.gz rneovim-2d72d85b23761383ac7838faed2f7b53bdce8817.tar.bz2 rneovim-2d72d85b23761383ac7838faed2f7b53bdce8817.zip |
refactor: pos_T macros to functions (#6496)
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 645139f696..3037cfe669 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -15,6 +15,7 @@ #include "nvim/func_attr.h" #include "nvim/indent.h" #include "nvim/main.h" +#include "nvim/mark.h" #include "nvim/mbyte.h" #include "nvim/memline.h" #include "nvim/memory.h" @@ -1366,7 +1367,7 @@ void getvcols(win_T *wp, pos_T *pos1, pos_T *pos2, colnr_T *left, colnr_T to1; colnr_T to2; - if (ltp(pos1, pos2)) { + if (lt(*pos1, *pos2)) { getvvcol(wp, pos1, &from1, NULL, &to1); getvvcol(wp, pos2, &from2, NULL, &to2); } else { |