// Reset the options in the Advanced dialog (via Advanced button in Find dialog) to default
function ResetFindAdvanced() {
nHigh = 0;
nLow = 0;
s = editor.GetProfileString(eeRegCommon, "", "FindFlag", "0");
if (s.length == 18 && s.substr(0, 2) == "0x") {
nHigh = parseInt(s.substr(2, 8), 16);
nLow = parseInt(s.substr(10, 8), 16);
}
bModified = false;
nHigh2 = nHigh & ~(eeExFindSeparateCRLF | eeExFindBOL | eeExFindEOL | eeExFindLookaround | eeExFindRegexBoost | eeExFindRegexOnigmo | eeExFindRegexOnigmoPerl | eeExFindNoOverlap);
nLow2 = nLow & ~(eeFindReplaceEmbeddedNL | eeFindMatchDotNL);
if( nHigh != nHigh2 || nLow != nLow2 ) {
s64 = "0x" + nHigh2.toString(16) + ("00000000" + nLow2.toString(16)).slice(-8);
editor.WriteProfileString( eeRegCommon, "", "FindFlag", s64, eeRegQWord );
}
if( editor.GetProfileInt(eeRegCommon, "", "LinesSearch", 0) != 0 ) {
editor.WriteProfileInt(eeRegCommon, "", "LinesSearch", 0);
}
}
ResetFindAdvanced();