diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-08-28 15:30:11 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-08-28 15:30:11 +0200 |
| commit | 63304991187eeefb656fdb4ba6fc04d21601ebae (patch) | |
| tree | a95801bab3c392bcfc1814403b08cb60983a2964 /text-objects.h | |
| parent | 191daea3627689121de3bac73961056426b943d3 (diff) | |
| download | vis-63304991187eeefb656fdb4ba6fc04d21601ebae.tar.gz vis-63304991187eeefb656fdb4ba6fc04d21601ebae.tar.xz | |
text-object: make word object behave more like in vim
Diffstat (limited to 'text-objects.h')
| -rw-r--r-- | text-objects.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stddef.h> #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); |
