diff src/getchar.c @ 27523:4c7bb6fd383f v8.2.4289

patch 8.2.4289: warnings reported by MSVC Commit: https://github.com/vim/vim/commit/5411910c77cba85212963a2fb71d8c71f8a5d203 Author: K.Takata <kentkt@csc.jp> Date: Thu Feb 3 13:33:03 2022 +0000 patch 8.2.4289: warnings reported by MSVC Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes https://github.com/vim/vim/issues/9689)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Feb 2022 14:45:03 +0100
parents fb4c30606b4a
children ec52847967d8
line wrap: on
line diff
--- 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;
 		}