comparison 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
comparison
equal deleted inserted replaced
27522:19898d468c67 27523:4c7bb6fd383f
1766 gui.in_use && 1766 gui.in_use &&
1767 # endif 1767 # endif
1768 c == K_TEAROFF) 1768 c == K_TEAROFF)
1769 { 1769 {
1770 char_u name[200]; 1770 char_u name[200];
1771 int i; 1771 int j;
1772 1772
1773 // get menu path, it ends with a <CR> 1773 // get menu path, it ends with a <CR>
1774 for (i = 0; (c = vgetorpeek(TRUE)) != '\r'; ) 1774 for (j = 0; (c = vgetorpeek(TRUE)) != '\r'; )
1775 { 1775 {
1776 name[i] = c; 1776 name[j] = c;
1777 if (i < 199) 1777 if (j < 199)
1778 ++i; 1778 ++j;
1779 } 1779 }
1780 name[i] = NUL; 1780 name[j] = NUL;
1781 gui_make_tearoff(name); 1781 gui_make_tearoff(name);
1782 continue; 1782 continue;
1783 } 1783 }
1784 #endif 1784 #endif
1785 #if defined(FEAT_GUI) && defined(FEAT_GUI_GTK) && defined(FEAT_MENU) 1785 #if defined(FEAT_GUI) && defined(FEAT_GUI_GTK) && defined(FEAT_MENU)