diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-27 17:12:40 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-27 17:12:40 +0200 |
| commit | c034be42821637990ac1d4c0f0329be0e98f70b1 (patch) | |
| tree | 7020cc40b6d03954b271c3deb129a4e60869c4ae /vis.c | |
| parent | aa4823e78092ac3c18201089b4c2eedb9cd6bfe6 (diff) | |
| download | vis-c034be42821637990ac1d4c0f0329be0e98f70b1.tar.gz vis-c034be42821637990ac1d4c0f0329be0e98f70b1.tar.xz | |
Add text objects for word (lowercase) variant
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 }, |
