summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-09 22:04:54 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-09 22:04:54 +0100
commit702adb13c18b0219f1d63a80f0daa0d9b7a8dd54 (patch)
treeebd7b8046fa5d580262f9d471cee165755c19430
parentb4a099d21277d39bd51840b0d8f4622495804ecc (diff)
downloadserenity-702adb13c18b0219f1d63a80f0daa0d9b7a8dd54.zip
TextEditor: Remove the selection from the status bar.
-rw-r--r--Applications/TextEditor/main.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp
index b2381a8e48..d6bb29b676 100644
--- a/Applications/TextEditor/main.cpp
+++ b/Applications/TextEditor/main.cpp
@@ -29,10 +29,6 @@ int main(int argc, char** argv)
text_editor->on_cursor_change = [statusbar] (GTextEditor& editor) {
StringBuilder builder;
builder.appendf("Line: %d, Column: %d", editor.cursor().line(), editor.cursor().column());
- auto selection = editor.normalized_selection();
- if (selection.is_valid()) {
- builder.appendf(" Selection: [%d,%d]-[%d,%d]", selection.start().line(), selection.start().column(), selection.end().line(), selection.end().column());
- }
statusbar->set_text(builder.to_string());
};