refactor: pos_T macros to functions (#6496)

This commit is contained in:
Felipe Oliveira Carvalho
2017-04-11 22:44:48 +02:00
committed by Justin M. Keyes
parent 1b94852ccb
commit 2d72d85b23
8 changed files with 48 additions and 21 deletions

View File

@@ -7,6 +7,7 @@
#include "nvim/eval.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/mark.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/misc1.h"
@@ -598,7 +599,7 @@ int get_lisp_indent(void)
paren = *pos;
pos = findmatch(NULL, '[');
if ((pos == NULL) || ltp(pos, &paren)) {
if ((pos == NULL) || lt(*pos, paren)) {
pos = &paren;
}
}