mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
TextEditor: Let's have line numbers starting at 1.
Thanks to Dan for pointing this out on IRC: <danboid> I see TextEditor still numbers its lines from 0. You're too much of a programmer sometimes kling! :) < kling> that might be the most extreme form of "programmer design" I've seen in serenity
This commit is contained in:
@@ -25,7 +25,7 @@ TextEditorWidget::TextEditorWidget()
|
||||
|
||||
m_editor->on_cursor_change = [statusbar, this] {
|
||||
StringBuilder builder;
|
||||
builder.appendf("Line: %d, Column: %d", m_editor->cursor().line(), m_editor->cursor().column());
|
||||
builder.appendf("Line: %d, Column: %d", m_editor->cursor().line() + 1, m_editor->cursor().column());
|
||||
statusbar->set_text(builder.to_string());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user