comparison src/dosinst.c @ 16162:cd5c83115ec6 v8.1.1086

patch 8.1.1086: too many curly braces commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 18:47:01 2019 +0100 patch 8.1.1086: too many curly braces Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 19:00:07 +0100
parents b9098585d945
children 081522b02c2d
comparison
equal deleted inserted replaced
16161:75fa84e2461b 16162:cd5c83115ec6
847 /* Don't use double quotes for the "set" argument, also when it 847 /* Don't use double quotes for the "set" argument, also when it
848 * contains a space. The quotes would be included in the value 848 * contains a space. The quotes would be included in the value
849 * for MSDOS and NT. 849 * for MSDOS and NT.
850 * The order of preference is: 850 * The order of preference is:
851 * 1. $VIMRUNTIME/vim.exe (user preference) 851 * 1. $VIMRUNTIME/vim.exe (user preference)
852 * 2. $VIM/vim70/vim.exe (hard coded version) 852 * 2. $VIM/vim81/vim.exe (hard coded version)
853 * 3. installdir/vim.exe (hard coded install directory) 853 * 3. installdir/vim.exe (hard coded install directory)
854 */ 854 */
855 fprintf(fd, "set VIM_EXE_DIR=%s\n", installdir); 855 fprintf(fd, "set VIM_EXE_DIR=%s\n", installdir);
856 fprintf(fd, "if exist \"%%VIM%%\\%s\\%s\" set VIM_EXE_DIR=%%VIM%%\\%s\n", 856 fprintf(fd, "if exist \"%%VIM%%\\%s\\%s\" set VIM_EXE_DIR=%%VIM%%\\%s\n",
857 VIM_VERSION_NODOT, exename, VIM_VERSION_NODOT); 857 VIM_VERSION_NODOT, exename, VIM_VERSION_NODOT);
1566 "*\\OpenWithList\\gvim.exe", 1566 "*\\OpenWithList\\gvim.exe",
1567 }; 1567 };
1568 1568
1569 for (i = 0; ERROR_SUCCESS == lRet 1569 for (i = 0; ERROR_SUCCESS == lRet
1570 && i < sizeof(openwith) / sizeof(openwith[0]); i++) 1570 && i < sizeof(openwith) / sizeof(openwith[0]); i++)
1571 {
1572 lRet = reg_create_key_and_value(hRootKey, openwith[i], NULL, "", flag); 1571 lRet = reg_create_key_and_value(hRootKey, openwith[i], NULL, "", flag);
1573 }
1574 } 1572 }
1575 1573
1576 return lRet; 1574 return lRet;
1577 } 1575 }
1578 1576