From c034be42821637990ac1d4c0f0329be0e98f70b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 27 Sep 2014 17:12:40 +0200 Subject: Add text objects for word (lowercase) variant --- vis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vis.c') 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 }, -- cgit v1.2.3