diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp index 43dcb6411b2..4ba1c3d1840 100644 --- a/Applications/TextEditor/main.cpp +++ b/Applications/TextEditor/main.cpp @@ -24,6 +24,7 @@ int main(int argc, char** argv) auto* toolbar = new GToolBar(widget); auto* text_editor = new GTextEditor(GTextEditor::MultiLine, widget); + text_editor->set_ruler_visible(true); auto* statusbar = new GStatusBar(widget); text_editor->on_cursor_change = [statusbar, text_editor] { diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 6c7034da3fb..fb465d931b1 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -20,7 +20,6 @@ GTextEditor::GTextEditor(Type type, GWidget* parent) set_frame_shadow(FrameShadow::Sunken); set_frame_thickness(2); set_scrollbars_enabled(is_multi_line()); - m_ruler_visible = is_multi_line(); set_font(GFontDatabase::the().get_by_name("Csilla Thin")); m_lines.append(make()); m_cursor = { 0, 0 }; diff --git a/LibGUI/GTextEditor.h b/LibGUI/GTextEditor.h index 6776fe52724..6df130f7eb6 100644 --- a/LibGUI/GTextEditor.h +++ b/LibGUI/GTextEditor.h @@ -187,7 +187,7 @@ private: TextAlignment m_text_alignment { TextAlignment::CenterLeft }; bool m_cursor_state { true }; bool m_in_drag_select { false }; - bool m_ruler_visible { true }; + bool m_ruler_visible { false }; bool m_have_pending_change_notification { false }; int m_line_spacing { 4 }; int m_soft_tab_width { 4 };