0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.1.1319: Various typos in the code, issue with test_inst_complete.vim

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: #17143

Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-04-18 10:57:33 +02:00
committed by Christian Brabandt
parent e9a27ef373
commit 98800979dc
10 changed files with 16 additions and 14 deletions

View File

@@ -248,11 +248,11 @@ get_vts_sum(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]);