Codechange: use Textbuf directly, instead via several virtual functions in Window

This commit is contained in:
Rubidium
2023-07-01 22:05:07 +02:00
committed by rubidium42
parent 0316940fe8
commit 8c742b456f
7 changed files with 37 additions and 95 deletions

View File

@@ -275,6 +275,15 @@ void Textbuf::DiscardMarkedText(bool update)
this->markpos = this->markend = this->markxoffs = this->marklength = 0;
}
/**
* Get the current text.
* @return Current text.
*/
const char *Textbuf::GetText() const
{
return this->buf;
}
/** Update the character iter after the text has changed. */
void Textbuf::UpdateStringIter()
{