diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-07-26 17:37:29 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-08-01 14:59:32 +0200 |
| commit | 9e36ee296ebfa8aed74b440b18634d91859a2069 (patch) | |
| tree | c4babe2fd313f33ccc4dc615d3506be4e4e8702d /text-objects.c | |
| parent | d1d5853517685cc9a7968784b9b0c4b505fd7bfa (diff) | |
| download | vis-9e36ee296ebfa8aed74b440b18634d91859a2069.tar.gz vis-9e36ee296ebfa8aed74b440b18634d91859a2069.tar.xz | |
vis: remove ie inner entire text object
Diffstat (limited to 'text-objects.c')
| -rw-r--r-- | text-objects.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/text-objects.c b/text-objects.c index f4fcb4a..b3b9c69 100644 --- a/text-objects.c +++ b/text-objects.c @@ -15,19 +15,6 @@ Filerange text_object_entire(Text *txt, size_t pos) { return text_range_new(0, text_size(txt)); } -Filerange text_object_entire_inner(Text *txt, size_t pos) { - char c; - Filerange r = text_object_entire(txt, pos); - Iterator it = text_iterator_get(txt, r.start); - if (text_iterator_byte_get(&it, &c) && c == '\n') - while (text_iterator_byte_next(&it, &c) && c == '\n'); - r.start = it.pos; - it = text_iterator_get(txt, r.end); - while (text_iterator_char_prev(&it, &c) && c == '\n'); - r.end = it.pos; - return text_range_linewise(txt, &r); -} - static Filerange text_object_customword(Text *txt, size_t pos, int (*isboundary)(int)) { Filerange r; char c, prev = '0', next = '0'; |
