vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 79f56efdec6e1ee7e2aa98544195f07b6c3e6260
parent 96934dc010515c0f64f35e5cd44dd8d378ae9525
Author: Silvan Jegen <s.jegen@gmail.com>
Date:   Sun, 20 Dec 2015 14:08:04 +0100

Initialize enum values to the public API ones

Diffstat:
Mvis-core.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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,