split_filename(szRight, NULL, name, ext);
m_pRight->SetTextType(ext);
+ // SetTextType will revert to language dependent defaults for tab
+ m_pLeft->SetTabSize(mf->m_nTabSize);
+ m_pRight->SetTabSize(mf->m_nTabSize);
// set the frame window header
CChildFrame *pf = static_cast<CChildFrame *>(m_pMergeDoc->m_pView->GetParentFrame());
mf->m_pLeft->PrimeListWithFile(m_strTempLeftFile);
mf->m_pRight->PrimeListWithFile(m_strTempRightFile);
+ // PrimeListWithFile will call resetview which resets tabs
+ mf->m_pLeft->SetTabSize(mf->m_nTabSize);
+ mf->m_pRight->SetTabSize(mf->m_nTabSize);
+
int lcnt = mf->m_pLeft->GetLineCount();
int rcnt = mf->m_pRight->GetLineCount();
/*TODO: if (lcnt < rcnt)