Skip to content

Commit

Permalink
Make Panel.Select backward compatible (see commit 6527510)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed May 19, 2023
1 parent eb56ea5 commit 4067c52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions far/src/panels/filelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ int64_t FileList::VMProcess(int OpCode,void *vParam,int64_t iParam)

for(size_t ILI = 0; (namePtr=itemsList.Get(ILI)) != nullptr; ++ILI)
{
if ((Pos=FindFile(namePtr,FALSE)) != -1)
if ((Pos=FindFile(namePtr, !wcschr(namePtr,LGOOD_SLASH))) != -1)
{
Select(ListData[Pos],FALSE);
Result++;
Expand Down Expand Up @@ -907,7 +907,7 @@ int64_t FileList::VMProcess(int OpCode,void *vParam,int64_t iParam)

for(size_t ILI = 0; (namePtr=itemsList.Get(ILI)) != nullptr; ++ILI)
{
if ((Pos=FindFile(namePtr,FALSE)) != -1)
if ((Pos=FindFile(namePtr, !wcschr(namePtr,LGOOD_SLASH))) != -1)
{
Select(ListData[Pos],TRUE);
Result++;
Expand Down Expand Up @@ -943,7 +943,7 @@ int64_t FileList::VMProcess(int OpCode,void *vParam,int64_t iParam)

for(size_t ILI = 0; (namePtr=itemsList.Get(ILI)) != nullptr; ++ILI)
{
if ((Pos=FindFile(namePtr,FALSE)) != -1)
if ((Pos=FindFile(namePtr, !wcschr(namePtr,LGOOD_SLASH))) != -1)
{
Select(ListData[Pos],ListData[Pos]->Selected?FALSE:TRUE);
Result++;
Expand Down

0 comments on commit 4067c52

Please sign in to comment.