CMergeApp();
~CMergeApp();
- CString addToFilter;
+
public:
void AddToRecentProjectsMRU(LPCTSTR sPathName);
void SetNeedIdleTimer();
GetParentFrame()->SetLastCompareResult(identical != IDENTLEVEL::ALL ? 1 : 0);
- CString text = theApp.addToFilter;
- if (text != (CString)L"")
- {
- theApp.m_pLineFilters->AddFilter(text.GetString(), true);
- text = (CString)L"";
- theApp.addToFilter = text;
- }
HideFilterLines();
return nResult;
ForEachView([](auto& pView) { pView->SetEnableHideLines(true); });
}
+void CMergeDoc::AddToLineFilters(const String& text)
+{
+ theApp.m_pLineFilters->AddFilter(text, true);
+}
+
void CMergeDoc::HideFilterLines()
{
int nLine;
typedef enum { BYTEDIFF, WORDDIFF } DIFFLEVEL;
void Showlinediff(CMergeEditView *pView, bool bReversed = false);
void AddToSubstitutionFilters(CMergeEditView* pView, bool bReversed = false);
+ void AddToLineFilters(const String& text);
std::vector<WordDiff> GetWordDiffArrayInDiffBlock(int nDiff);
std::vector<WordDiff> GetWordDiffArray(int nLineIndex);
std::vector<WordDiff> GetWordDiffArrayInRange(const int begin[3], const int end[3], int pane1 = -1, int pane2 = -1);
else
GetTextWithoutEmptysInColumnSelection(text);
- theApp.addToFilter = text;
CMergeDoc* pd = GetDocument();
+ pd->AddToLineFilters(text.GetString());
pd->FlushAndRescan(true);
}