diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-09 11:58:29 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-09 12:34:55 +0100 |
| commit | 51bf6abad037a333ad3b8f760150de4d834bb900 (patch) | |
| tree | c2c8d9e5fc4d6f76c310202dfc096ca98f375084 /vis.h | |
| parent | 0e74ee26ef3d441a559ea18bec08018c0c2ef461 (diff) | |
| download | vis-51bf6abad037a333ad3b8f760150de4d834bb900.tar.gz vis-51bf6abad037a333ad3b8f760150de4d834bb900.tar.xz | |
vis: unify VIS_OP_{INSERT,REPLACE} implementation
They both perform a motion before changing mode.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, ...); |
