aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-09 12:56:25 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-09 12:56:25 +0100
commitb05cd28c904994188be55e7bcecf98ef0077b6ba (patch)
tree3edd0bb028a38754c5d873369a10b82d5b252956 /vis.h
parent51bf6abad037a333ad3b8f760150de4d834bb900 (diff)
downloadvis-b05cd28c904994188be55e7bcecf98ef0077b6ba.tar.gz
vis-b05cd28c904994188be55e7bcecf98ef0077b6ba.tar.xz
vis: add replace operator VIS_OP_REPLACE
Delete the given range and insert the same number of replacement characters.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index b1deae3..8c981fb 100644
--- a/vis.h
+++ b/vis.h
@@ -183,6 +183,7 @@ enum VisOperator {
VIS_OP_SHIFT_LEFT,
VIS_OP_JOIN,
VIS_OP_MODESWITCH,
+ VIS_OP_REPLACE,
VIS_OP_CURSOR_SOL,
VIS_OP_CASE_SWAP,
VIS_OP_FILTER,
@@ -208,6 +209,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
+ * - VIS_OP_REPLACE a char pointer reffering to the replacement character
*/
bool vis_operator(Vis*, enum VisOperator, ...);