| 163 | } |
| 164 | |
| 165 | KTextEditor::Cursor SourceCodeInsertion::end() const |
| 166 | { |
| 167 | auto ret = m_context->rangeInCurrentRevision().end(); |
| 168 | if (m_codeRepresentation && m_codeRepresentation->lines() && dynamic_cast<TopDUContext*>(m_context.data())) { |
| 169 | ret.setLine(m_codeRepresentation->lines() - 1); |
| 170 | ret.setColumn(m_codeRepresentation->line(ret.line()).size()); |
| 171 | } |
| 172 | return ret; |
| 173 | } |
| 174 | |
| 175 | KTextEditor::Range SourceCodeInsertion::insertionRange(int line) |
| 176 | { |
no test coverage detected