diff --git a/src/widgets.hpp b/src/widgets.hpp index 37b358f..34360e8 100644 --- a/src/widgets.hpp +++ b/src/widgets.hpp @@ -30,7 +30,7 @@ namespace detail { auto centered_widget(ftxui::Component& container, const std::string_view& title, const ftxui::Element& widget) noexcept -> ftxui::Element; auto controls_widget(const std::array&& titles, const std::array, 2>&& callbacks, ftxui::ButtonOption* button_option) noexcept -> ftxui::Component; auto centered_interative_multi(const std::string_view& title, ftxui::Component& widgets) noexcept -> ftxui::Element; - auto multiline_text(const std::vector& lines) noexcept -> ftxui::Element; + auto multiline_text(std::vector&& lines) noexcept -> ftxui::Element; auto from_vector_checklist(const std::vector& opts, bool* const opts_state) noexcept -> ftxui::Components; auto from_checklist_string(const std::vector& opts, const bool* const opts_state) noexcept -> std::string; auto from_checklist_vector(const std::vector& opts, const bool* const opts_state) noexcept -> std::vector;