From db69104f1a44b8e8d0318f296e1ee8f69c49e80b Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Tue, 25 Apr 2023 03:55:26 +0200 Subject: [PATCH] text_area: fix build error with gcc 12 Fixes #4842 --- repos/gems/src/app/text_area/dialog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); });