Skip to content

Commit 1d8f377

Browse files
committed
Removed automatic quoting of 'script_editor_argument'
1 parent 25e0958 commit 1d8f377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8120,13 +8120,13 @@ void CMUSHclientDoc::EditFileWithEditor (CString strName)
81208120
CString strArgument = m_strScriptEditorArgument;
81218121

81228122
if (strArgument.IsEmpty ())
8123-
strArgument = "%file"; // default
8123+
strArgument = "\"%file\""; // default
81248124

81258125
// replace %file
81268126
strArgument.Replace ("%file", strName);
81278127

81288128
HINSTANCE hInst = ShellExecute (Frame, _T("open"), m_strScriptEditor,
8129-
CFormat ("\"%s\"", (LPCTSTR) strArgument), // quote argument
8129+
strArgument, // argument
81308130
NULL, SW_SHOWNORMAL);
81318131

81328132
if ((long) hInst <= 32)

0 commit comments

Comments
 (0)