aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-06 05:49:04 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-06-06 05:50:12 +0800
commitc235a063d6ead447f13076be50ddd9fae6223913 (patch)
tree00b2177cd236f1d66133afd622ad273a461a226d /src
parentd7651b27d54a87c5783c0a579af11da9a16a39aa (diff)
downloadrneovim-c235a063d6ead447f13076be50ddd9fae6223913.tar.gz
rneovim-c235a063d6ead447f13076be50ddd9fae6223913.tar.bz2
rneovim-c235a063d6ead447f13076be50ddd9fae6223913.zip
vim-patch:9.1.0467: typos in some comments
Problem: typos in some comments (after v9.1.0466) Solution: fix comments (zeertzjq) closes: vim/vim#14919 https://github.com/vim/vim/commit/551d8c372e49ed630fd95c6422a0ee62d00902c5
Diffstat (limited to 'src')
-rw-r--r--src/nvim/insexpand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
index 77fae4dd18..9f39c7d581 100644
--- a/src/nvim/insexpand.c
+++ b/src/nvim/insexpand.c
@@ -1195,8 +1195,8 @@ static int ins_compl_build_pum(void)
int max_fuzzy_score = 0;
do {
- // when completeopt include fuzzy option and leader is not null or empty
- // set the cp_score for after compare.
+ // When 'completeopt' contains "fuzzy" and leader is not NULL or empty,
+ // set the cp_score for later comparisons.
if (compl_fuzzy_match && compl_leader != NULL && lead_len > 0) {
comp->cp_score = fuzzy_match_str(comp->cp_str, compl_leader);
}
@@ -3639,7 +3639,7 @@ static void ins_compl_show_filename(void)
redraw_cmdline = false; // don't overwrite!
}
-/// find a completion item in when completeopt include fuzzy option
+/// Find a completion item when 'completeopt' contains "fuzzy".
static compl_T *find_comp_when_fuzzy(void)
{
int target_idx = -1;