From 566f5733783ca89ad40c0b2173498437051d0300 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 10 Sep 2018 23:16:14 -0400 Subject: [PATCH] move: dir in onepage() is Direction Move vim.h in move.h to implicitly include buffer_defs.h and pos.h. --- src/nvim/move.c | 3 +-- src/nvim/move.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nvim/move.c b/src/nvim/move.c index f921b761a5..1b84628ebc 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -16,7 +16,6 @@ #include #include -#include "nvim/vim.h" #include "nvim/ascii.h" #include "nvim/move.h" #include "nvim/charset.h" @@ -1726,7 +1725,7 @@ void cursor_correct(void) * * return FAIL for failure, OK otherwise */ -int onepage(int dir, long count) +int onepage(Direction dir, long count) { long n; int retval = OK; diff --git a/src/nvim/move.h b/src/nvim/move.h index 00fbcc580f..3670dc9086 100644 --- a/src/nvim/move.h +++ b/src/nvim/move.h @@ -2,8 +2,7 @@ #define NVIM_MOVE_H #include -#include "nvim/buffer_defs.h" -#include "nvim/pos.h" +#include "nvim/vim.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "move.h.generated.h"