summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-02-03 13:33:03 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-03 13:33:03 +0000
commit5411910c77cba85212963a2fb71d8c71f8a5d203 (patch)
tree02b93fc9c88ba737b0d94785790effa062de465b /src/getchar.c
parent6e1d31e9e3ca42cb883abca198f011dc6f4ceb14 (diff)
patch 8.2.4289: warnings reported by MSVCv8.2.4289
Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes #9689)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 9a1132aa80..c7a1cca1a6 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1768,16 +1768,16 @@ vgetc(void)
c == K_TEAROFF)
{
char_u name[200];
- int i;
+ int j;
// get menu path, it ends with a <CR>
- for (i = 0; (c = vgetorpeek(TRUE)) != '\r'; )
+ for (j = 0; (c = vgetorpeek(TRUE)) != '\r'; )
{
- name[i] = c;
- if (i < 199)
- ++i;
+ name[j] = c;
+ if (j < 199)
+ ++j;
}
- name[i] = NUL;
+ name[j] = NUL;
gui_make_tearoff(name);
continue;
}