aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
diff options
context:
space:
mode:
authorMoesasji <miyamoto.31b@gmail.com>2020-12-10 18:25:37 +0000
committerMoesasji <miyamoto.31b@gmail.com>2020-12-10 18:25:37 +0000
commit8000440b2de276f6ee65f3f369b8622478a0afb2 (patch)
treeaee1ce6714e9188038b2cd9bf0cf9ec2457e8f20 /text-objects.h
parent247b799b7cd272f20b2c6f9b4e60bf8b57775985 (diff)
downloadvis-8000440b2de276f6ee65f3f369b8622478a0afb2.tar.gz
vis-8000440b2de276f6ee65f3f369b8622478a0afb2.tar.xz
fix typos in comments
Diffstat (limited to 'text-objects.h')
-rw-r--r--text-objects.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/text-objects.h b/text-objects.h
index 9bf13e5..c2aef13 100644
--- a/text-objects.h
+++ b/text-objects.h
@@ -1,8 +1,8 @@
#ifndef TEXT_OBJECTS_H
#define TEXT_OBJECTS_H
-/* these functions all take a file position. if this position is part of the
- * respective text-object, a corresponding range is returned. if there is no
+/* these functions all take a file position. If this position is part of the
+ * respective text-object, a corresponding range is returned. If there is no
* such text-object at the given location, an empty range is returned.
*/
@@ -13,13 +13,13 @@
Filerange text_object_entire(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
+/* includes trailing white spaces. If at pos happens to be a white space
* include all neighbouring leading white spaces and the following word. */
Filerange text_object_word_outer(Text*, size_t pos);
-/* find next occurance of `word' (as word not substring) in forward/backward direction */
+/* find next occurence of `word' (as word not substring) in forward/backward direction */
Filerange text_object_word_find_next(Text*, size_t pos, const char *word);
Filerange text_object_word_find_prev(Text*, size_t pos, const char *word);
-/* find next occurance of a literal string (not regex) in forward/backward direction */
+/* find next occurence of a literal string (not regex) in forward/backward direction */
Filerange text_object_find_next(Text *txt, size_t pos, const char *search);
Filerange text_object_find_prev(Text *txt, size_t pos, const char *search);
/* same semantics as above but for a longword (i.e. delimited by white spaces) */
@@ -44,7 +44,7 @@ Filerange text_object_backtick(Text*, size_t pos);
/* match a search term in either forward or backward direction */
Filerange text_object_search_forward(Text*, size_t pos, Regex*);
Filerange text_object_search_backward(Text*, size_t pos, Regex*);
-/* match all lines with same indendation level than the current one */
+/* match all lines with same indentation level as the current one */
Filerange text_object_indentation(Text*, size_t pos);
/* extend a range to cover whole lines */