move: dir in onepage() is Direction

Move vim.h in move.h to implicitly include buffer_defs.h and pos.h.
This commit is contained in:
Jan Edmund Lazo 2018-09-10 23:16:14 -04:00
parent 1a43aef9ec
commit 566f573378
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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"