private void IncPos(Hunk h, ref int pos) { if (sidebyside) { pos += h.MaxLines(); } else if (h.Same) { pos += h.Original().Count; } else { pos += h.Original().Count; for (int i = 0; i < h.ChangedLists; i++) { pos += h.Changes(i).Count; } } }
void IncPos(Hunk h, ref int pos) { pos += h.MaxLines(); /* if (sidebyside) pos += h.MaxLines(); else if (h.Same) pos += h.Original().Count; else { pos += h.Original().Count; for (int i = 0; i < h.ChangedLists; i++) pos += h.Changes(i).Count; }*/ }