| 189 | } |
| 190 | |
| 191 | void DocumentChangeTracker::textRemoved(Document* document, const KTextEditor::Range& oldRange, const QString& oldText) |
| 192 | { |
| 193 | m_currentCleanedInsertion.clear(); |
| 194 | m_lastInsertionPosition = KTextEditor::Cursor::invalid(); |
| 195 | |
| 196 | auto delay = recommendedDelay(document, oldRange, oldText, true); |
| 197 | m_needUpdate = delay != ILanguageSupport::NoUpdateRequired; |
| 198 | updateChangedRange(delay); |
| 199 | } |
| 200 | |
| 201 | void DocumentChangeTracker::documentSavedOrUploaded(KTextEditor::Document* doc, bool) |
| 202 | { |