mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: LocalProcess cd fix
git-svn-id: svn://ultimatepp.org/upp/trunk@12320 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3b4fc3d541
commit
01a28058fc
2 changed files with 9 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ bool Win32CreateProcess(const char *command, const char *envptr, STARTUPINFOW& s
|
|||
memcpy(env, wenv, (len + 2) * sizeof(wchar));
|
||||
}
|
||||
#endif
|
||||
return CreateProcessW(NULL, cmd, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, (void *)envptr, wcd, &si, &pi);
|
||||
return CreateProcessW(NULL, cmd, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, (void *)envptr, cd ? ~wcd : NULL, &si, &pi);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -197,6 +197,14 @@ void Ide::EditorMenu(Bar& bar)
|
|||
InsertAdvanced(bar);
|
||||
bar.MenuSeparator();
|
||||
OnlineSearchMenu(bar);
|
||||
bar.Add(IsClipboardAvailableText() && (editor.IsSelection() || editor.GetLength() < 1024*1024),
|
||||
"Compare with clipboard..", [=]() {
|
||||
DiffDlg dlg;
|
||||
dlg.diff.left.RemoveFrame(dlg.p);
|
||||
dlg.diff.Set(ReadClipboardText(), editor.IsSelection() ? editor.GetSelection()
|
||||
: editor.Get());
|
||||
dlg.Run();
|
||||
});
|
||||
bar.MenuSeparator();
|
||||
editor.StdBar(bar);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue