mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
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:
@@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user