diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-08-01 13:20:40 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-08-01 13:20:40 +0200 |
| commit | 25beaeb21f3d0b2fcd9b6c612cd2d7cb25291a28 (patch) | |
| tree | a864a4c03a7e37814ae46ff8de24fc956eb4c5b4 /text-objects.h | |
| parent | 99753fa1f144b6e33c06b5a9a93725125b5e085a (diff) | |
| download | vis-25beaeb21f3d0b2fcd9b6c612cd2d7cb25291a28.tar.gz vis-25beaeb21f3d0b2fcd9b6c612cd2d7cb25291a28.tar.xz | |
vis: support `ae` and `ie` text objects
Diffstat (limited to 'text-objects.h')
| -rw-r--r-- | text-objects.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h index 068bafa..fb35d13 100644 --- a/text-objects.h +++ b/text-objects.h @@ -9,6 +9,10 @@ #include <stddef.h> #include "text.h" +/* return range covering the entire text */ +Filerange text_object_entire(Text*, size_t pos); +/* entire document except leading and trailing empty lines */ +Filerange text_object_entire_inner(Text*, size_t pos); /* word which happens to be at pos without any neighbouring white spaces */ Filerange text_object_word(Text*, size_t pos); /* includes trailing white spaces. if at pos happens to be a white space |
