From 39e2b6f1b7a750af55ceeadab977354919d0ccf5 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 20 Dec 2015 14:08:04 +0100 Subject: Initialize enum values to the public API ones --- vis-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vis-core.h b/vis-core.h index 1ecc1b6..22bec33 100644 --- a/vis-core.h +++ b/vis-core.h @@ -59,8 +59,8 @@ typedef struct { /* Motion implementation, takes a cursor postion and returns a size_t (*view)(Vis*, View*); size_t (*win)(Vis*, Win*, size_t pos); enum { - LINEWISE = 1 << 0, /* should the covered range be extended to whole lines? */ - CHARWISE = 1 << 1, /* scrolls window content until position is visible */ + LINEWISE = VIS_MOTIONTYPE_LINEWISE, /* should the covered range be extended to whole lines? */ + CHARWISE = VIS_MOTIONTYPE_CHARWISE, /* scrolls window content until position is visible */ INCLUSIVE = 1 << 2, /* should new position be included in operator range? */ IDEMPOTENT = 1 << 3, /* does the returned postion remain the same if called multiple times? */ JUMP = 1 << 4, -- cgit v1.2.3