From 12fd7c278abee067c6c52e709e3cebbfc9ca04bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 26 Oct 2015 19:26:05 +0100 Subject: vis: introduce explicit operators for case changes --- vis.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 5e371e3..e1361d6 100644 --- a/vis.h +++ b/vis.h @@ -135,11 +135,14 @@ enum VisOperator { OP_PUT, OP_SHIFT_RIGHT, OP_SHIFT_LEFT, - OP_CASE_CHANGE, OP_JOIN, OP_REPEAT_INSERT, OP_REPEAT_REPLACE, OP_CURSOR, + OP_CASE_SWAP, + /* pseudo operators: keep them at the end to save space in array definition */ + OP_CASE_LOWER, + OP_CASE_UPPER, }; /* TODO: overhaul repeatable infrastructure: @@ -154,7 +157,7 @@ enum { PUT_BEFORE_END, }; -void vis_operator(Vis*, enum VisOperator); +bool vis_operator(Vis*, enum VisOperator); enum VisMotion { MOVE_LINE_DOWN, -- cgit v1.2.3