summaryrefslogtreecommitdiff
path: root/Applications/TextEditor/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-07 13:13:25 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-07 13:13:25 +0100
commit1ac71d1fb10bc6d695012d8a69d12c15dd90027a (patch)
tree0915a2f313b675398491737004c87fdbc097a147 /Applications/TextEditor/main.cpp
parentdff57909a798ff2eac279d85acb8f315710bb5d1 (diff)
downloadserenity-1ac71d1fb10bc6d695012d8a69d12c15dd90027a.zip
GTextEditor: Improvements to cursor rendering.
The view now scrolls along with you as you move the cursor around.
Diffstat (limited to 'Applications/TextEditor/main.cpp')
-rw-r--r--Applications/TextEditor/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp
index 05d01cb908..06fc62a950 100644
--- a/Applications/TextEditor/main.cpp
+++ b/Applications/TextEditor/main.cpp
@@ -104,6 +104,7 @@ int main(int argc, char** argv)
window->set_rect(20, 200, 640, 400);
window->set_main_widget(widget);
window->set_should_exit_app_on_close(true);
+ text_editor->set_focus(true);
window->show();
return app.exec();