diff --git a/repos/gems/src/app/text_area/dialog.cc b/repos/gems/src/app/text_area/dialog.cc index 88721e1eb1..cfacdfe12e 100644 --- a/repos/gems/src/app/text_area/dialog.cc +++ b/repos/gems/src/app/text_area/dialog.cc @@ -227,8 +227,8 @@ void Dialog::_delete_selection() _text.apply(first_y, [&] (Line &first) { if (cursor_at_deleted_line) - _cursor = { .x = first.upper_bound(), - .y = first_y }; + _cursor = { { first.upper_bound() }, + { first_y } }; _text.apply(next_y, [&] (Line &next) { _move_characters(next, first); });