aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-12-23 17:21:00 +0100
committerMarc André Tanner <mat@brain-dump.org>2014-12-23 17:21:00 +0100
commit985a828346a5d3185f6ee1e00d2ab4154024a9c8 (patch)
tree255db2a1dae37efaebc4f039efa60e7784deee05 /vis.c
parent3314a2843f3c940e6fb96d8612f23172832f3804 (diff)
downloadvis-985a828346a5d3185f6ee1e00d2ab4154024a9c8.tar.gz
vis-985a828346a5d3185f6ee1e00d2ab4154024a9c8.tar.xz
Distinct between inner and outer word text objects
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/vis.c b/vis.c
index 9d708ec..7f3b9ca 100644
--- a/vis.c
+++ b/vis.c
@@ -323,8 +323,10 @@ static Movement moves[] = {
/* these can be passed as int argument to textobj(&(const Arg){ .i = TEXT_OBJ_* }) */
enum {
- TEXT_OBJ_WORD,
- TEXT_OBJ_LONGWORD,
+ TEXT_OBJ_INNER_WORD,
+ TEXT_OBJ_OUTER_WORD,
+ TEXT_OBJ_INNER_LONGWORD,
+ TEXT_OBJ_OUTER_LONGWORD,
TEXT_OBJ_LINE_UP,
TEXT_OBJ_LINE_DOWN,
TEXT_OBJ_SENTENCE,
@@ -346,8 +348,10 @@ enum {
};
static TextObject textobjs[] = {
- [TEXT_OBJ_WORD] = { text_object_word },
- [TEXT_OBJ_LONGWORD] = { text_object_longword },
+ [TEXT_OBJ_INNER_WORD] = { text_object_word },
+ [TEXT_OBJ_OUTER_WORD] = { text_object_word_outer },
+ [TEXT_OBJ_INNER_LONGWORD] = { text_object_longword },
+ [TEXT_OBJ_OUTER_LONGWORD] = { text_object_longword_outer },
[TEXT_OBJ_LINE_UP] = { text_object_line },
[TEXT_OBJ_LINE_DOWN] = { text_object_line },
[TEXT_OBJ_SENTENCE] = { text_object_sentence },