| 77 | } |
| 78 | |
| 79 | inline bool duplicateChanges(const DocumentChangePointer& previous, const DocumentChangePointer& current) |
| 80 | { |
| 81 | // Given the option of considering a duplicate two changes in the same range |
| 82 | // but with different old texts to be ignored |
| 83 | return previous->m_range == current->m_range && |
| 84 | previous->m_newText == current->m_newText && |
| 85 | (previous->m_oldText == current->m_oldText || |
| 86 | (previous->m_ignoreOldText && current->m_ignoreOldText)); |
| 87 | } |
| 88 | |
| 89 | inline QString rangeText(const KTextEditor::Range& range, const QStringList& textLines) |
| 90 | { |