From 51bf6abad037a333ad3b8f760150de4d834bb900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 9 Nov 2016 11:58:29 +0100 Subject: vis: unify VIS_OP_{INSERT,REPLACE} implementation They both perform a motion before changing mode. --- vis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 142123a..b1deae3 100644 --- a/vis.h +++ b/vis.h @@ -182,8 +182,7 @@ enum VisOperator { VIS_OP_SHIFT_RIGHT, VIS_OP_SHIFT_LEFT, VIS_OP_JOIN, - VIS_OP_INSERT, - VIS_OP_REPLACE, + VIS_OP_MODESWITCH, VIS_OP_CURSOR_SOL, VIS_OP_CASE_SWAP, VIS_OP_FILTER, @@ -208,6 +207,7 @@ enum VisOperator { * * - VIS_OP_FILTER a char pointer referring to the command to run * - VIS_OP_JOIN a char pointer referring to the text to insert between lines + * - VIS_OP_MODESWITCH a enum VisMode constant indicating the mode to switch to */ bool vis_operator(Vis*, enum VisOperator, ...); -- cgit v1.2.3