* Discard any marked text. * @param update Set to true if the internal state should be updated. */
| 270 | * @param update Set to true if the internal state should be updated. |
| 271 | */ |
| 272 | void Textbuf::DiscardMarkedText(bool update) |
| 273 | { |
| 274 | if (this->markend == 0) return; |
| 275 | |
| 276 | this->DeleteText(this->markpos, this->markend, update); |
| 277 | this->markpos = this->markend = this->markxoffs = this->marklength = 0; |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * Get the current text. |
no test coverage detected