diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-08-06 11:08:04 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-08-06 13:45:08 +0200 |
| commit | bb1ca1631def9be20da34af66b11c48daab09313 (patch) | |
| tree | a2bbbd8975640073f9c95f8dc222fca97b78ab09 /text-objects.h | |
| parent | 2084b81c593cd5ebefe0d6b19dfad2c85811d0a6 (diff) | |
| download | vis-bb1ca1631def9be20da34af66b11c48daab09313.tar.gz vis-bb1ca1631def9be20da34af66b11c48daab09313.tar.xz | |
vis: implement al and il text objects
Diffstat (limited to 'text-objects.h')
| -rw-r--r-- | text-objects.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h index 1ff728a..5781b51 100644 --- a/text-objects.h +++ b/text-objects.h @@ -26,6 +26,7 @@ Filerange text_object_longword(Text*, size_t pos); Filerange text_object_longword_outer(Text*, size_t pos); Filerange text_object_line(Text*, size_t pos); +Filerange text_object_line_inner(Text*, size_t pos); Filerange text_object_sentence(Text*, size_t pos); Filerange text_object_paragraph(Text*, size_t pos); @@ -45,6 +46,8 @@ Filerange text_object_backtick(Text*, size_t pos); /* extend a range to cover whole lines */ Filerange text_range_linewise(Text*, Filerange*); +/* trim leading and trailing white spaces from range */ +Filerange text_range_inner(Text*, Filerange*); /* test whether a given range covers whole lines */ bool text_range_is_linewise(Text*, Filerange*); |
