aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-10 23:16:14 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-10 23:16:16 -0400
commit566f5733783ca89ad40c0b2173498437051d0300 (patch)
treeb56c49debf51bfd101e9e2bf145937afba4d548c
parent1a43aef9ecd62a0c03a4702cfb827369d229f748 (diff)
downloadrneovim-566f5733783ca89ad40c0b2173498437051d0300.tar.gz
rneovim-566f5733783ca89ad40c0b2173498437051d0300.tar.bz2
rneovim-566f5733783ca89ad40c0b2173498437051d0300.zip
move: dir in onepage() is Direction
Move vim.h in move.h to implicitly include buffer_defs.h and pos.h.
-rw-r--r--src/nvim/move.c3
-rw-r--r--src/nvim/move.h3
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 <inttypes.h>
#include <stdbool.h>
-#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 <stdbool.h>
-#include "nvim/buffer_defs.h"
-#include "nvim/pos.h"
+#include "nvim/vim.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "move.h.generated.h"