Changeset View
Changeset View
Standalone View
Standalone View
src/buffer/katetextrange.cpp
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | 176 | } else if (toRange().isEmpty()) { | |||
---|---|---|---|---|---|
177 | m_feedback->rangeEmpty(this); | 177 | m_feedback->rangeEmpty(this); | ||
178 | } | 178 | } | ||
179 | } | 179 | } | ||
180 | } | 180 | } | ||
181 | 181 | | |||
182 | void TextRange::checkValidity(int oldStartLine, int oldEndLine, bool notifyAboutChange) | 182 | void TextRange::checkValidity(int oldStartLine, int oldEndLine, bool notifyAboutChange) | ||
183 | { | 183 | { | ||
184 | /** | 184 | /** | ||
185 | * in any case: reset the flag, to avoid multiple runs | ||||
186 | */ | ||||
187 | m_isCheckValidityRequired = false; | ||||
188 | | ||||
189 | /** | ||||
185 | * check if any cursor is invalid or the range is zero size and it should be invalidated then | 190 | * check if any cursor is invalid or the range is zero size and it should be invalidated then | ||
186 | */ | 191 | */ | ||
187 | if (!m_start.isValid() || !m_end.isValid() || (m_invalidateIfEmpty && m_end <= m_start)) { | 192 | if (!m_start.isValid() || !m_end.isValid() || (m_invalidateIfEmpty && m_end <= m_start)) { | ||
188 | m_start.setPosition(-1, -1); | 193 | m_start.setPosition(-1, -1); | ||
189 | m_end.setPosition(-1, -1); | 194 | m_end.setPosition(-1, -1); | ||
190 | } | 195 | } | ||
191 | 196 | | |||
192 | /** | 197 | /** | ||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |