text_area: fix build error with gcc 12

Fixes #4842
This commit is contained in:
Christian Prochaska 2023-04-25 03:55:26 +02:00 committed by Christian Helmuth
parent 1edde7c1bc
commit db69104f1a

View File

@ -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); });