aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-25 12:22:07 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-25 12:22:07 +0200
commitcef2c51df7e782452c8e2cc8f32dcb0931b3ac99 (patch)
treef1a57876217afdc67de851cdb5db132b756b7da5 /text-objects.h
parent4ca158acffb798436ede54b4942d2e4a5212d1a7 (diff)
downloadvis-cef2c51df7e782452c8e2cc8f32dcb0931b3ac99.tar.gz
vis-cef2c51df7e782452c8e2cc8f32dcb0931b3ac99.tar.xz
Add text_object_word_raw which does not include any whitespaces
Diffstat (limited to 'text-objects.h')
-rw-r--r--text-objects.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/text-objects.h b/text-objects.h
index a1e30f9..105860a 100644
--- a/text-objects.h
+++ b/text-objects.h
@@ -13,7 +13,9 @@
* 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));
+/* word which happens to be at pos, _not_ including any white spaces. if pos
+ * is not part of a word, an empty range is returned */
+Filerange text_object_word_raw(Text*, size_t pos);
Filerange text_object_line(Text*, size_t pos);
Filerange text_object_sentence(Text*, size_t pos);
Filerange text_object_paragraph(Text*, size_t pos);