Skip to content
Permalink
Browse files

and again

  • Loading branch information...
alabuzhev committed Oct 6, 2017
1 parent d460965 commit e776961d56d3e66518479965babc4dfc3ef3ecb5
Showing with 9 additions and 3 deletions.
  1. +4 −0 far/changelog
  2. +4 −2 far/processname.cpp
  3. +1 −1 far/vbuild.m4
@@ -1,3 +1,7 @@
drkns 06.10.2017 18:12:24 +0100 - build 5062

1. И ещё.

drkns 04.10.2017 23:47:28 +0100 - build 5061

1. И ещё.
@@ -67,7 +67,9 @@ bool ConvertWildcards(const string& SrcName, string &strDest, int SelectedFolder

size_t BeforeNameLength = DestNamePos? 0 : strSrc.size() - SrcNamePtr.size();

const auto SrcNameDot = std::find(ALL_CONST_RANGE(SrcNamePtr), L'.');
const auto SrcNameRDot = std::find(ALL_CONST_REVERSE_RANGE(SrcNamePtr), L'.');
const auto SrcNameDot = SrcNameRDot == SrcNamePtr.crend()? SrcNamePtr.cend() : (SrcNameRDot + 1).base();

const wchar_t *CurWildPtr = strWildName.data();

while (*CurWildPtr)
@@ -179,7 +181,7 @@ bool CmpName(string_view pattern, string_view str, bool skippath, bool CmpNameSe
if (std::none_of(ALL_CONST_RANGE(pattern), [](wchar_t Char) { return wcschr(L"*?[", Char) != nullptr; }))
{
const auto RDotIt = std::find(ALL_CONST_REVERSE_RANGE(str), L'.');
auto DotIt = RDotIt == str.crend()? str.cend() : (RDotIt + 1).base();
const auto DotIt = RDotIt == str.crend()? str.cend() : (RDotIt + 1).base();

if (pattern.size() == 1)
return DotIt == str.cend() || DotIt + 1 == str.cend();
@@ -1 +1 @@
m4_define(BUILD,5061)m4_dnl
m4_define(BUILD,5062)m4_dnl

0 comments on commit e776961

Please sign in to comment.
You can’t perform that action at this time.