Przeglądaj źródła

GTextEditor: Support starting with an empty document.

Andreas Kling 6 lat temu
rodzic
commit
a5bc20c733
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      LibGUI/GTextEditor.cpp

+ 2 - 0
LibGUI/GTextEditor.cpp

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