MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DiscardMarkedText

Method DiscardMarkedText

src/textbuf.cpp:272–278  ·  view source on GitHub ↗

* Discard any marked text. * @param update Set to true if the internal state should be updated. */

Source from the content-addressed store, hash-verified

270 * @param update Set to true if the internal state should be updated.
271 */
272void 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.

Callers 1

InsertStringMethod · 0.95

Calls 1

DeleteTextMethod · 0.95

Tested by

no test coverage detected