Skip to content

Commit

Permalink
#3243
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed May 20, 2016
1 parent d1e1831 commit 3e157d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
drkns 19.05.2016 19:03:12 +0200 - build 4682
drkns 20.05.2016 21:16:12 +0200 - build 4683

1. #0003243 Пункты user-menu, в которых вызывается .cmd начали запускаються в отдельном окне.

drkns 19.05.2016 19:03:12 +0200 - build 4682

1. Уточнение 4679.

Expand Down
6 changes: 3 additions & 3 deletions far/execute.cpp
Expand Up @@ -192,9 +192,9 @@ static bool FindObject(const string& Module, string &strDest, bool &Internal)

if (!Result)
{
string strFullName=Module;
LPCWSTR ModuleExt=wcsrchr(PointToName(Module),L'.');
const auto strPathExt = L";" + os::env::get_pathext();
auto strFullName = Module;
const auto ModuleExt = wcsrchr(PointToName(Module), L'.');
const auto strPathExt = os::env::get_pathext() + L";;"; // ";;" to also try no extension if nothing else matches
const auto PathExtList = split<std::vector<string>>(strPathExt, STLF_UNIQUE | STLF_ALLOWEMPTY);

for (const auto& i: PathExtList) // первый проход - в текущем каталоге
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4682)m4_dnl
m4_define(BUILD,4683)m4_dnl

0 comments on commit 3e157d5

Please sign in to comment.