summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DevTools/HackStudio/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp
index 1deacd2aec..4243aaca3b 100644
--- a/DevTools/HackStudio/main.cpp
+++ b/DevTools/HackStudio/main.cpp
@@ -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();
}