CPoint currentPosDst = m_pView[dstPane]->GetCursorPos();
currentPosDst.x = 0;
+ CPoint pt(0, 0);
+ m_pView[dstPane]->SetCursorPos(pt);
+ m_pView[dstPane]->SetNewSelection(pt, pt, false);
+ m_pView[dstPane]->SetNewAnchor(pt);
+
// copy from bottom up is more efficient
for (int i = lastDiff - 1; i >= firstDiff; --i)
{
CPoint currentPosDst = m_pView[dstPane]->GetCursorPos();
currentPosDst.x = 0;
+ CPoint pt(0, 0);
+ m_pView[dstPane]->SetCursorPos(pt);
+ m_pView[dstPane]->SetNewSelection(pt, pt, false);
+ m_pView[dstPane]->SetNewAnchor(pt);
+
// copy from bottom up is more efficient
for (int i = lastDiff; i >= firstDiff; --i)
{
{
int file;
DIFFRANGE cd;
+
+ for (file = 0; file < m_nBuffers; file++)
+ {
+ if (nLineIndex >= m_ptBuf[file]->GetLineCount())
+ return;
+ }
+
int nDiff = m_diffList.LineToDiff(nLineIndex);
if (nDiff == -1)
return;