@@ -2612,29 +2612,29 @@ begin
2612
2612
if (CbbEditor.ItemIndex=GE_Nano) then
2613
2613
GitSystemConfigSet(' core.editor' ,' nano.exe' )
2614
2614
else if ((CbbEditor.ItemIndex=GE_NotepadPlusPlus)) and (NotepadPlusPlusPath<>' ' ) then
2615
- GitSystemConfigSet(' core.editor' ,' "' +# 39 + NotepadPlusPlusPath+# 39 + ' -multiInst -notabbar -nosession -noPlugin" ' )
2615
+ GitSystemConfigSet(' core.editor' ,' "' +NotepadPlusPlusPath+' " -multiInst -notabbar -nosession -noPlugin' )
2616
2616
else if ((CbbEditor.ItemIndex=GE_VisualStudioCode)) and (VisualStudioCodePath<>' ' ) then begin
2617
2617
if (VisualStudioCodeUserInstallation=False) then
2618
- GitSystemConfigSet(' core.editor' ,' "' +# 39 + VisualStudioCodePath+# 39 + ' --wait" ' )
2618
+ GitSystemConfigSet(' core.editor' ,' "' +VisualStudioCodePath+' " --wait' )
2619
2619
else begin
2620
- if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "' +# 39 + VisualStudioCodePath+# 39 + ' --wait"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2620
+ if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "\" ' + VisualStudioCodePath+' \" --wait"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2621
2621
LogError(' Could not set Visual Studio Code as core.editor in the gitconfig.' )
2622
2622
end
2623
2623
end else if ((CbbEditor.ItemIndex=GE_VisualStudioCodeInsiders)) and (VisualStudioCodeInsidersPath<>' ' ) then begin
2624
2624
if (VisualStudioCodeInsidersUserInstallation=False) then
2625
- GitSystemConfigSet(' core.editor' ,' "' +# 39 + VisualStudioCodeInsidersPath+# 39 + ' --wait" ' )
2625
+ GitSystemConfigSet(' core.editor' ,' "' +VisualStudioCodeInsidersPath+' " --wait' )
2626
2626
else begin
2627
- if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "' +# 39 + VisualStudioCodeInsidersPath+# 39 + ' --wait"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2627
+ if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "\" ' + VisualStudioCodeInsidersPath+' \" --wait"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2628
2628
LogError(' Could not set Visual Studio Code Insiders as core.editor in the gitconfig.' )
2629
2629
end
2630
2630
end else if ((CbbEditor.ItemIndex=GE_SublimeText)) and (SublimeTextPath<>' ' ) then begin
2631
- if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "' +# 39 + SublimeTextPath+# 39 + ' -w"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2631
+ if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "\" ' + SublimeTextPath+' \" -w"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2632
2632
LogError(' Could not set Sublime Text as core.editor in the gitconfig.' );
2633
2633
end else if ((CbbEditor.ItemIndex=GE_Atom)) and (AtomPath<>' ' ) then begin
2634
- if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "' +# 39 + AtomPath+# 39 + ' --wait"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2634
+ if not ExecAsOriginalUser(AppDir + ' \{#MINGW_BITNESS}\bin\git.exe' ,' config --global core.editor "\" ' + AtomPath+' \" --wait"' ,' ' ,SW_HIDE,ewWaitUntilTerminated, i) then
2635
2635
LogError(' Could not set Atom as core.editor in the gitconfig.' );
2636
2636
end else if ((CbbEditor.ItemIndex=GE_CustomEditor)) and (PathIsValidExecutable(CustomEditorPath)) then
2637
- GitSystemConfigSet(' core.editor' ,' "' +# 39 + CustomEditorPath+# 39 + ' ' +CustomEditorOptions+ ' " ' );
2637
+ GitSystemConfigSet(' core.editor' ,' "' +CustomEditorPath+' " ' +CustomEditorOptions);
2638
2638
2639
2639
{
2640
2640
Install a scheduled task to try to auto-update Git for Windows
0 commit comments