aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-27 17:12:40 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-27 17:12:40 +0200
commitc034be42821637990ac1d4c0f0329be0e98f70b1 (patch)
tree7020cc40b6d03954b271c3deb129a4e60869c4ae /vis.c
parentaa4823e78092ac3c18201089b4c2eedb9cd6bfe6 (diff)
downloadvis-c034be42821637990ac1d4c0f0329be0e98f70b1.tar.gz
vis-c034be42821637990ac1d4c0f0329be0e98f70b1.tar.xz
Add text objects for word (lowercase) variant
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index a700166..58cf0a3 100644
--- a/vis.c
+++ b/vis.c
@@ -309,6 +309,7 @@ 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_LINE_UP,
TEXT_OBJ_LINE_DOWN,
@@ -331,7 +332,8 @@ enum {
};
static TextObject textobjs[] = {
- [TEXT_OBJ_LONGWORD] = { text_object_word },
+ [TEXT_OBJ_WORD] = { text_object_word },
+ [TEXT_OBJ_LONGWORD] = { text_object_longword },
[TEXT_OBJ_LINE_UP] = { text_object_line },
[TEXT_OBJ_LINE_DOWN] = { text_object_line },
[TEXT_OBJ_SENTENCE] = { text_object_sentence },