From 63304991187eeefb656fdb4ba6fc04d21601ebae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 28 Aug 2014 15:30:11 +0200 Subject: text-object: make word object behave more like in vim --- text-objects.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text-objects.h') diff --git a/text-objects.h b/text-objects.h index 62d30e5..de8dcfb 100644 --- a/text-objects.h +++ b/text-objects.h @@ -4,6 +4,8 @@ #include #include "text.h" +/* word which happens to be at pos, includes trailing white spaces. if at pos happens to + * be a whitespace include all neighbouring leading whitespaces and the following word. */ Filerange text_object_word(Text*, size_t pos); Filerange text_object_word_boundry(Text*, size_t pos, int (*isboundry)(int)); Filerange text_object_char(Text*, size_t pos, char c); -- cgit v1.2.3