aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/insexpand.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-23 08:12:44 +0800
committerGitHub <noreply@github.com>2023-04-23 08:12:44 +0800
commit431b152726013ec6a5cece0285e7c103673bc511 (patch)
tree8feae947c1f7672f1ac03c2e3f2dc91ad291c115 /src/nvim/insexpand.c
parent540d6c595bc8e1b298dce51211b5d39e25e17d03 (diff)
downloadrneovim-431b152726013ec6a5cece0285e7c103673bc511.tar.gz
rneovim-431b152726013ec6a5cece0285e7c103673bc511.tar.bz2
rneovim-431b152726013ec6a5cece0285e7c103673bc511.zip
vim-patch:9.0.1479: small source file problems; outdated list of distrib. files (#23272)
Problem: Small source file problems; outdated list of distributed files. Solution: Small updates to source files and list of distributed files. https://github.com/vim/vim/commit/f39d9e9dca443e42920066be3a98fd9780e4ed33 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/insexpand.c')
-rw-r--r--src/nvim/insexpand.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
index 800d7e29ca..5baf090f14 100644
--- a/src/nvim/insexpand.c
+++ b/src/nvim/insexpand.c
@@ -2651,7 +2651,7 @@ static void ins_compl_update_sequence_numbers(void)
compl_T *match;
if (compl_dir_forward()) {
- // search backwards for the first valid (!= -1) number.
+ // Search backwards for the first valid (!= -1) number.
// This should normally succeed already at the first loop
// cycle, so it's fast!
for (match = compl_curr_match->cp_prev;
@@ -2671,7 +2671,7 @@ static void ins_compl_update_sequence_numbers(void)
}
} else { // BACKWARD
assert(compl_direction == BACKWARD);
- // search forwards (upwards) for the first valid (!= -1)
+ // Search forwards (upwards) for the first valid (!= -1)
// number. This should normally succeed already at the
// first loop cycle, so it's fast!
for (match = compl_curr_match->cp_next;
@@ -2682,8 +2682,7 @@ static void ins_compl_update_sequence_numbers(void)
}
}
if (match != NULL) {
- // go down and assign all numbers which are not
- // assigned yet
+ // go down and assign all numbers which are not assigned yet
for (match = match->cp_prev;
match && match->cp_number == -1;
match = match->cp_prev) {