aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-03-26 23:46:46 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-03-26 23:59:01 -0400
commitbf2ad145e3340205e304b5aba130952c04fd8473 (patch)
tree27b832ee6bf690eecbaa9d296d748c2200d5feba
parentc95fdcd12740795ce2e0209e0f1d796a49f300d5 (diff)
downloadrneovim-bf2ad145e3340205e304b5aba130952c04fd8473.tar.gz
rneovim-bf2ad145e3340205e304b5aba130952c04fd8473.tar.bz2
rneovim-bf2ad145e3340205e304b5aba130952c04fd8473.zip
vim-patch:8.1.0528: various typos in comments
Problem: Various typos in comments. Solution: Fix the typos. https://github.com/vim/vim/commit/c4568ab37edc01e01f258d64bceddcd01633a268
-rw-r--r--src/nvim/search.c2
-rw-r--r--src/nvim/spell.c2
-rw-r--r--src/nvim/spellfile.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 777ea07a21..6e00602e66 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -310,7 +310,7 @@ void free_search_patterns(void)
/// Save and restore the search pattern for incremental highlight search
/// feature.
///
-/// It's similar but different from save_search_patterns() and
+/// It's similar to but different from save_search_patterns() and
/// restore_search_patterns(), because the search pattern must be restored when
/// cancelling incremental searching even if it's called inside user functions.
void save_last_search_pattern(void)
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index ec4da88ea1..331d8da55a 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -2294,7 +2294,7 @@ static void use_midword(slang_T *lp, win_T *wp)
}
// Find the region "region[2]" in "rp" (points to "sl_regions").
-// Each region is simply stored as the two characters of it's name.
+// Each region is simply stored as the two characters of its name.
// Returns the index if found (first is 0), REGION_ALL if not found.
static int find_region(char_u *rp, char_u *region)
{
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index 7a6f2fce39..ccad893d61 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -3227,7 +3227,7 @@ static int get_pfxlist(afffile_T *affile, char_u *afflist, char_u *store_afflist
prevp = p;
if (get_affitem(affile->af_flagtype, &p) != 0) {
// A flag is a postponed prefix flag if it appears in "af_pref"
- // and it's ID is not zero.
+ // and its ID is not zero.
STRLCPY(key, prevp, p - prevp + 1);
hi = hash_find(&affile->af_pref, key);
if (!HASHITEM_EMPTY(hi)) {