diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-28 17:00:20 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-28 17:00:20 +0200 |
| commit | 6d7aa204acaa326ce5ef1c74a7ae88875bc1752a (patch) | |
| tree | 17127655e872286519ebefaa81e1c827e6bb3586 /text-objects.h | |
| parent | b366f55f29af3775c055115572dd84873b1921e0 (diff) | |
| download | vis-6d7aa204acaa326ce5ef1c74a7ae88875bc1752a.tar.gz vis-6d7aa204acaa326ce5ef1c74a7ae88875bc1752a.tar.xz | |
text-object: introduce utility function text_range_is_linewise
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 aec84b8..068bafa 100644 --- a/text-objects.h +++ b/text-objects.h @@ -37,5 +37,7 @@ Filerange text_object_backtick(Text*, size_t pos); /* extend a range to cover whole lines */ Filerange text_range_linewise(Text*, Filerange*); +/* test whether a given range covers whole lines */ +bool text_range_is_linewise(Text*, Filerange*); #endif |
