vis

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

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

commit 0221d22fdba8c495ba4137eb53acdeff6fccc8d2
parent c4b53f38546fcd1abcb9c244e550cb05ed9f14a3
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon, 18 May 2020 07:32:27 +0200

vis: fix implicit enum conversion warning

Diffstat:
Mvis-operators.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis-operators.c b/vis-operators.c @@ -303,7 +303,7 @@ bool vis_operator(Vis *vis, enum VisOperator id, ...) { if (vis->action.op == op) { /* hacky way to handle double operators i.e. things like * dd, yy etc where the second char isn't a movement */ - vis->action.type = LINEWISE; + vis_motion_type(vis, VIS_MOTIONTYPE_LINEWISE); vis_motion(vis, VIS_MOVE_LINE_NEXT); } else { vis->action.op = op;