mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:35:07 +00:00
TextEditor: Remove the selection from the status bar.
This commit is contained in:
parent
b4a099d212
commit
702adb13c1
1 changed files with 0 additions and 4 deletions
|
@ -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());
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue