mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
HackStudio: Show cursor line and column in the statusbar
This commit is contained in:
@@ -57,6 +57,10 @@ int main(int argc, char** argv)
|
||||
|
||||
auto statusbar = GStatusBar::construct(widget);
|
||||
|
||||
text_editor->on_cursor_change = [&] {
|
||||
statusbar->set_text(String::format("Line: %d, Column: %d", text_editor->cursor().line(), text_editor->cursor().column()));
|
||||
};
|
||||
|
||||
window->show();
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user