CPoint ptPos;
ptPos.x = 0;
ptPos.y = nApparentLine;
- pCurrentView->ScrollToLine(ptPos.y);
- pOtherView->ScrollToLine(ptPos.y);
+ int nScrollLine = nApparentLine - CONTEXT_LINES_ABOVE;
+ if (nScrollLine < 0)
+ nScrollLine = 0;
+ pCurrentView->ScrollToLine(nScrollLine);
+ pOtherView->ScrollToLine(nScrollLine);
pCurrentView->SetCursorPos(ptPos);
pOtherView->SetCursorPos(ptPos);
pCurrentView->SetAnchor(ptPos);
Src/Common: OptionsMgr.cpp OptionsMgr.h
PATCH: [ 912754 ] Close open MergeDoc before opening new from DirDoc
Src: DirDoc.cpp DirDoc.h DirView.cpp
+ RFE: [ 874366 ] Add goto line-number
+ Show few lines of context above line scrolled to
+ Src: MergeEditView.cpp
2004-03-09 Kimmo
PATCH: [ 912297 ] Splashscreen and syntax highlight options