summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/GvimExt/gvimext.cpp10
-rw-r--r--src/GvimExt/gvimext.h2
-rw-r--r--src/version.c2
3 files changed, 10 insertions, 4 deletions
diff --git a/src/GvimExt/gvimext.cpp b/src/GvimExt/gvimext.cpp
index e56379caef..dd26eb1b69 100644
--- a/src/GvimExt/gvimext.cpp
+++ b/src/GvimExt/gvimext.cpp
@@ -776,8 +776,12 @@ STDMETHODIMP CShellExt::InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi)
// development.
return E_FAIL;
}
+
+ LPCMINVOKECOMMANDINFOEX lpcmiex = (LPCMINVOKECOMMANDINFOEX)lpcmi;
+ LPCWSTR currentDirectory = lpcmi->cbSize == sizeof(CMINVOKECOMMANDINFOEX) ? lpcmiex->lpDirectoryW : NULL;
+
hr = InvokeSingleGvim(lpcmi->hwnd,
- lpcmi->lpDirectory,
+ currentDirectory,
lpcmi->lpVerb,
lpcmi->lpParameters,
lpcmi->nShow,
@@ -884,7 +888,7 @@ searchpath(char *name)
STDMETHODIMP CShellExt::InvokeSingleGvim(HWND hParent,
- LPCSTR /* pszWorkingDir */,
+ LPCWSTR workingDir,
LPCSTR /* pszCmd */,
LPCSTR /* pszParam */,
int /* iShowCmd */,
@@ -944,7 +948,7 @@ STDMETHODIMP CShellExt::InvokeSingleGvim(HWND hParent,
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
- NULL, // Use parent's starting directory.
+ workingDir, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi) // Pointer to PROCESS_INFORMATION structure.
)
diff --git a/src/GvimExt/gvimext.h b/src/GvimExt/gvimext.h
index 3ad797e76b..b6be3a7975 100644
--- a/src/GvimExt/gvimext.h
+++ b/src/GvimExt/gvimext.h
@@ -130,7 +130,7 @@ protected:
int idHWnd);
STDMETHODIMP InvokeSingleGvim(HWND hParent,
- LPCSTR pszWorkingDir,
+ LPCWSTR workingDir,
LPCSTR pszCmd,
LPCSTR pszParam,
int iShowCmd,
diff --git a/src/version.c b/src/version.c
index c5877df998..50902d6222 100644
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3870,
+/**/
3869,
/**/
3868,