vim-patch:9.1.1319: Various typos in the code, issue with test_inst_complete.vim (#33527)

Problem:  Various typos in the code, redundant and strange use of
          :execute in test_ins_complete.vim (after 9.1.1315).
Solution: Fix typos in the code and in the documentation, use the
          executed command directly (zeertzjq).

closes: vim/vim#17143

98800979dc

Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
This commit is contained in:
zeertzjq
2025-04-19 07:23:20 +08:00
committed by GitHub
parent 9397fdafe1
commit c67398d31b
4 changed files with 6 additions and 6 deletions

View File

@@ -297,12 +297,12 @@ static int get_vts_sum(const int *vts_array, int index)
int sum = 0;
int i;
// Perform the summation for indeces within the actual array.
// Perform the summation for indices within the actual array.
for (i = 1; i <= index && i <= vts_array[0]; i++) {
sum += vts_array[i];
}
// Add topstops whose indeces exceed the actual array.
// Add tabstops whose indices exceed the actual array.
if (i <= index) {
sum += vts_array[vts_array[0]] * (index - vts_array[0]);
}