mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
refactor: reduce scope of locals as per the style guide (#22206)
This commit is contained in:
@@ -1026,8 +1026,6 @@ static ff_visited_list_hdr_T *ff_get_visited_list(char *filename,
|
||||
static bool ff_wc_equal(char *s1, char *s2)
|
||||
{
|
||||
int i, j;
|
||||
int c1 = NUL;
|
||||
int c2 = NUL;
|
||||
int prev1 = NUL;
|
||||
int prev2 = NUL;
|
||||
|
||||
@@ -1040,8 +1038,8 @@ static bool ff_wc_equal(char *s1, char *s2)
|
||||
}
|
||||
|
||||
for (i = 0, j = 0; s1[i] != NUL && s2[j] != NUL;) {
|
||||
c1 = utf_ptr2char(s1 + i);
|
||||
c2 = utf_ptr2char(s2 + j);
|
||||
int c1 = utf_ptr2char(s1 + i);
|
||||
int c2 = utf_ptr2char(s2 + j);
|
||||
|
||||
if ((p_fic ? mb_tolower(c1) != mb_tolower(c2) : c1 != c2)
|
||||
&& (prev1 != '*' || prev2 != '*')) {
|
||||
|
Reference in New Issue
Block a user