| 74 | } |
| 75 | |
| 76 | void CGhostTextView::popPosition(const SCursorPushed& Ssrc, CEPoint & pt) |
| 77 | { |
| 78 | pt.x = Ssrc.x; |
| 79 | pt.y = m_pGhostTextBuffer->ComputeApparentLine(Ssrc.y, Ssrc.nToFirstReal); |
| 80 | // if the cursor was in a trailing ghost line, and this disappeared, |
| 81 | // got at the end of the last line |
| 82 | if (pt.y >= GetLineCount()) |
| 83 | { |
| 84 | pt.y = GetLineCount()-1; |
| 85 | pt.x = GetLineLength(pt.y); |
| 86 | } |
| 87 | if (pt.y < 0) |
| 88 | pt.y = 0; |
| 89 | } |
| 90 | |
| 91 | void CGhostTextView::pushPosition(SCursorPushed & Sdest, CEPoint pt) |
| 92 | { |
nothing calls this directly
no test coverage detected