mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🧹 widgets: refactor a bit 3x
This commit is contained in:
parent
112bb742da
commit
36f68e505a
@ -92,7 +92,7 @@ Element multiline_text(std::vector<std::string>&& lines) noexcept {
|
||||
Elements multiline;
|
||||
|
||||
std::transform(std::make_move_iterator(lines.begin()), std::make_move_iterator(lines.end()), std::back_inserter(multiline),
|
||||
[=](auto&& line) -> Element { return std::move(text(std::forward<decltype(line)>(line))); });
|
||||
[=](auto&& line) -> Element { return text(std::forward<decltype(line)>(line)); });
|
||||
return std::move(vbox(std::move(multiline))) | frame;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user