1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00:00

GTextEditor: Support starting with an empty document.

This commit is contained in:
Andreas Kling 2019-03-07 16:51:47 +01:00
parent 43d56b6f3a
commit a5bc20c733

View file

@ -23,6 +23,8 @@ GTextEditor::GTextEditor(GWidget* parent)
m_horizontal_scrollbar->on_change = [this] (int) { m_horizontal_scrollbar->on_change = [this] (int) {
update(); update();
}; };
m_lines.append(make<Line>());
} }
GTextEditor::~GTextEditor() GTextEditor::~GTextEditor()