Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Jan 4, 2025
1 parent 429e738 commit a20a9cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions far/src/mix/udlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,15 @@ bool UserDefinedList::SetParameters(DWORD Flags, wchar_t separator1, wchar_t sep
mCaseSensitive = (Flags & ULF_CASESENSITIVE) != 0;
mProcessRegexp = (Flags & ULF_PROCESSREGEXP) != 0;

if (!Separator1 && Separator2)
{
if (!Separator1) {
Separator1 = Separator2;
}
if (Separator1 == Separator2) {
Separator2 = 0;
}

if (!Separator1 && !Separator2) SetDefaultSeparators();
if (!Separator1) {
SetDefaultSeparators();
}

return CheckSeparators();
}
Expand Down

0 comments on commit a20a9cb

Please sign in to comment.