mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
refactor: pos_T macros to functions (#6496)
This commit is contained in:

committed by
Justin M. Keyes

parent
1b94852ccb
commit
2d72d85b23
@@ -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 {
|
||||
|
Reference in New Issue
Block a user